当前位置:网站首页>记录一下大文件上传偶然成功偶然失败问题
记录一下大文件上传偶然成功偶然失败问题
2022-07-01 23:48:00 【每天都进步一点点】
项目情况:
网站使用微软云服务器、负载均衡(多机运行)、微软云oss
前端使用的是webuploader上传插件,该插件只有当文件上传成功之后,才能点击确认按钮。
遇到的奇葩情况(webuploader分片上传):
1、上传小文件,显示上传成功,点击确认按钮正常
2、大一些的文件,显示成功,有时能点击确认按钮正常,有时点击按钮没反应
后来找到的原因是:
负载均衡分发 + 分片上传 导致偶然成功偶然失败,把负载均衡变为单机运行就没问题,或者把分片上传关闭也没问题
解决方案:
1:更改负载均衡规则,不要自动分配,改为达到多少上限再分发到另一台机器(临界点可能出现问题)
2:更改程序直传到独立的文件服务器(微软云oss)
3:
边栏推荐
- Resumption of attack and defense drill
- 门级建模—课后习题
- from pip._ internal. cli. main import main ModuleNotFoundError: No module named ‘pip‘
- Linux foundation - centos7 offline installation of MySQL
- Redis AOF日志
- How to display real-time 2D map after rviz is opened
- Notes to problems - file /usr/share/mysql/charsets/readme from install of mysql-server-5.1.73-1 glibc23.x86_ 64 c
- const // It is a const object...class nullptr_t
- cookie、session、tooken
- jpa手写sql,用自定义实体类接收
猜你喜欢
随机推荐
Regular expression collection
使用uni-simple-router,动态传参 TypeError: Cannot convert undefined or null to object
Li Kou today's question -241 Design priorities for operational expressions
Multi table operation - one to one, one to many and many to many
Is it safe to buy funds on Great Wall Securities?
Concepts of dictionary, hash table and array
Windows 7 安装MYSQL 错误:1067
Door level modeling - after class exercises
华为HMS Core携手超图为三维GIS注入新动能
在长城证券上买基金安全吗?
How to display real-time 2D map after rviz is opened
Various global files related to [.Net core] program
Notes on problems - /usr/bin/perl is needed by mysql-server-5.1.73-1 glibc23.x86_ sixty-four
Key points and difficulties of the course "information content security" at Harbin Institute of Technology
Applet form verification encapsulation
2021 RoboCom 世界机器人开发者大赛-高职组初赛
ADO. Net SqlCommand object
What is the difference between memory leak and memory overflow?
2021 RoboCom 世界机器人开发者大赛-高职组复赛
Material design component - use bottomsheet to show extended content (I)









