当前位置:网站首页>记录一下大文件上传偶然成功偶然失败问题
记录一下大文件上传偶然成功偶然失败问题
2022-07-01 23:48:00 【每天都进步一点点】
项目情况:
网站使用微软云服务器、负载均衡(多机运行)、微软云oss
前端使用的是webuploader上传插件,该插件只有当文件上传成功之后,才能点击确认按钮。
遇到的奇葩情况(webuploader分片上传):
1、上传小文件,显示上传成功,点击确认按钮正常
2、大一些的文件,显示成功,有时能点击确认按钮正常,有时点击按钮没反应
后来找到的原因是:
负载均衡分发 + 分片上传 导致偶然成功偶然失败,把负载均衡变为单机运行就没问题,或者把分片上传关闭也没问题
解决方案:
1:更改负载均衡规则,不要自动分配,改为达到多少上限再分发到另一台机器(临界点可能出现问题)
2:更改程序直传到独立的文件服务器(微软云oss)
3:
边栏推荐
- .env.xxx 文件,加了常量,卻undefined
- Windows 7 安装MYSQL 错误:1067
- Distance measurement - Hamming distance
- 使用uni-simple-router,动态传参 TypeError: Cannot convert undefined or null to object
- 电商RPA机器人,助力品牌电商抢立流量高点
- Future trend and development of neural network Internet of things
- 【.Net Core】程序相关各种全局文件
- from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
- 【无标题】
- MySQL: the difference between insert ignore, insert and replace
猜你喜欢

notBlank 和 notEmpty

2021 robocom world robot developer competition - preliminary competition of higher vocational group

【QT】對於Qt MSVC 2017無法編譯的問題解决
![Various global files related to [.Net core] program](/img/89/32623abf30d3dc92a3cdb1710a624f.png)
Various global files related to [.Net core] program

Postgresql源码(57)HOT更新为什么性能差距那么大?

电商RPA机器人,助力品牌电商抢立流量高点

ARP message header format and request flow

RPA tutorial 01: Excel automation from introduction to practice

Distance measurement - Hamming distance
![[QT] solve the problem that QT MSVC 2017 cannot compile](/img/35/e458fd437a0bed4bace2d6d65c9ec8.png)
[QT] solve the problem that QT MSVC 2017 cannot compile
随机推荐
[understanding of opportunity-35]: Guiguzi - flying clamp - the art of remote connection, remote control and remote testing
excel如何打开100万行以上的csv文件
What is the difference between memory leak and memory overflow?
Material design component - use bottomsheet to show extended content (I)
Redis RDB快照
【无标题】
E-commerce RPA robot helps brand e-commerce to achieve high traffic
Use pair to do unordered_ Key value of map
哈工大《信息内容安全》课程知识要点和难点
2021 robocom world robot developer competition - preliminary competition of undergraduate group
. env. XXX file, with constant, but undefined
在代码中使用SqlCommand对象
Notblank and notempty
Know --matplotlib
Why does blocprovider feel similar to provider?
【.Net Core】程序相关各种全局文件
ADO. Net SqlConnection object usage summary
ADO. Net SqlDataAdapter object
Key points of security agreement
Is there a piece of code that makes you convinced by human wisdom