当前位置:网站首页>记录一下大文件上传偶然成功偶然失败问题
记录一下大文件上传偶然成功偶然失败问题
2022-07-01 23:48:00 【每天都进步一点点】
项目情况:
网站使用微软云服务器、负载均衡(多机运行)、微软云oss
前端使用的是webuploader上传插件,该插件只有当文件上传成功之后,才能点击确认按钮。
遇到的奇葩情况(webuploader分片上传):
1、上传小文件,显示上传成功,点击确认按钮正常
2、大一些的文件,显示成功,有时能点击确认按钮正常,有时点击按钮没反应
后来找到的原因是:
负载均衡分发 + 分片上传 导致偶然成功偶然失败,把负载均衡变为单机运行就没问题,或者把分片上传关闭也没问题
解决方案:
1:更改负载均衡规则,不要自动分配,改为达到多少上限再分发到另一台机器(临界点可能出现问题)
2:更改程序直传到独立的文件服务器(微软云oss)
3:
边栏推荐
- Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c
- Why is PHP called hypertext preprocessor
- Use vb Net to convert PNG pictures into icon type icon files
- Key points and difficulties of the course "information content security" at Harbin Institute of Technology
- 门级建模—课后习题
- Redis AOF log
- notBlank 和 notEmpty
- Concurrentskiplistmap -- principle of table skipping
- cookie、session、tooken
- kubernetes资源对象介绍及常用命令(三)
猜你喜欢
The best smart home open source system in 2022: introduction to Alexa, home assistant and homekit ecosystem
使用uni-simple-router,动态传参 TypeError: Cannot convert undefined or null to object
PyCharm调用matplotlib绘图时图像弹出问题怎么解决
Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four
The essence of software architecture
【CMake】Qt creator 里面的 cmake 配置
.env.xxx 文件,加了常量,卻undefined
2022年最佳智能家居开源系统:Alexa、Home Assistant、HomeKit生态系统介绍
使用VB.net将PNG图片转成icon类型图标文件
Write some suggestions to current and future doctoral students to sort out and share
随机推荐
Material design component - use bottomsheet to show extended content (I)
[leetcode] length of the last word [58]
PostgreSQL notes (10) dynamically execute syntax parsing process
Y53. Chapter III kubernetes from introduction to mastery -- ingress (26)
Why does blocprovider feel similar to provider?
Is it safe to buy funds on Great Wall Securities?
Relatively easy to understand PID understanding
[Qt] résoudre le problème que Qt msvc 2017 ne peut pas Compiler
2021 RoboCom 世界机器人开发者大赛-本科组初赛
Algolia's search needs are almost closed
Using uni simple router, dynamically pass parameters typeerror: cannot convert undefined or null to object
ConcurrentSkipListMap——跳表原理
【无标题】
安全协议重点
Huawei HMS core joins hands with hypergraph to inject new momentum into 3D GIS
from pip._internal.cli.main import main ModuleNotFoundError: No module named ‘pip‘
Leetcode (34) -- find the first and last positions of elements in a sorted array
常见的积分商城游戏类型有哪些?
2022-07-01: at the annual meeting of a company, everyone is going to play a game of giving bonuses. There are a total of N employees. Each employee has construction points and trouble points. They nee
PyCharm调用matplotlib绘图时图像弹出问题怎么解决