swift上传大文件出错

发布于 2021-11-29 08:06:12 字数 4283 浏览 923 评论 9

@zhouxingxing 你好,看了你对swift的研究,受益匪浅,不过我这边出现了个奇怪的问题,想跟你请教下:
环境是1proxy、2node,用的是回环文件。上传小文件没问题,但上传1G+的大文件就报错。这是日志:

客户端:

Object PUT failed: http://10.100.0.16:18888/v1/AUTH_test/myfiles/test/aa.data 503 Service Unavailable  [first 60 chars of response] <html><h1>Service Unavailable</h1><p>The server is currently

proxy:
Sep 22 13:03:45 localhost proxy-server ERROR with Object server 10.100.0.15:10000/sdb1 re: Trying to write to /v1/AUTH_test/myfiles/test/aa.data: ChunkWriteTimeout (10s)

node1:
Sep 22 13:02:51 localhost account-replicator Beginning replication run
Sep 22 13:03:01 localhost account-replicator ERROR reading HTTP response from {'replication_port': 10002, 'zone': 2, 'weight': 100.0, 'ip': '10.100.0.15', 'region': 1, 'port': 10002, 'replication_ip': '10.100.0.15', 'meta': u'', 'device': 'sdb1', 'id': 1}: Timeout (10s)
Sep 22 13:03:01 localhost account-replicator Replication run OVER
Sep 22 13:03:01 localhost account-replicator Attempted to replicate 1 dbs in 10.00580 seconds (0.09994/s)
Sep 22 13:03:01 localhost account-replicator Removed 0 dbs
Sep 22 13:03:01 localhost account-replicator 0 successes, 1 failures
Sep 22 13:03:01 localhost account-replicator no_change:0 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0
Sep 22 13:03:02 localhost object-auditor Begin object audit "forever" mode (ALL)
Sep 22 13:03:02 localhost object-auditor Object audit (ALL) "forever" mode completed: 0.10s. Total quarantined: 0, Total errors: 0, Total files/sec: 38.74 , Total bytes/sec: 174472.14, Auditing time: 0.06, Rate: 0.60
Sep 22 13:03:03 localhost container-replicator Beginning replication run
Sep 22 13:03:03 localhost container-replicator Replication run OVER

node2:

Sep 22 13:02:59 localhost container-replicator Attempted to replicate 2 dbs in 0.00945 seconds (211.72436/s)
Sep 22 13:02:59 localhost container-replicator Removed 0 dbs
Sep 22 13:02:59 localhost container-replicator 2 successes, 0 failures
Sep 22 13:02:59 localhost container-replicator no_change:2 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0
Sep 22 13:02:59 localhost object-auditor Begin object audit "forever" mode (ZBF)
Sep 22 13:02:59 localhost object-auditor Object audit (ZBF) "forever" mode completed: 0.06s. Total quarantined: 0, Total errors: 0, Total files/sec: 64.91 , Total bytes/sec: 0.00, Auditing time: 0.03, Rate: 0.53
Sep 22 13:02:59 localhost object-auditor Begin object audit "forever" mode (ALL)
Sep 22 13:02:59 localhost object-auditor Object audit (ALL) "forever" mode completed: 0.10s. Total quarantined: 0, Total errors: 0, Total files/sec: 39.19 , Total bytes/sec: 176490.90, Auditing time: 0.07, Rate: 0.72

Sep 22 13:02:59 localhost account-server ERROR __call__ error with REPLICATE /sdb1/122360/777e3b96a7936fb783a5ecf8e7d1c95d : LockTimeout (10s) /swift/sdb1/accounts/122360/95d/777e3b96a7936fb783a5ecf8e7d1c95d/.lock
Sep 22 13:02:59 localhost account-replicator Beginning replication run
Sep 22 13:02:59 localhost account-replicator Replication run OVER
Sep 22 13:02:59 localhost account-replicator Attempted to replicate 1 dbs in 6.49791 seconds (0.15390/s)
Sep 22 13:02:59 localhost account-replicator Removed 0 dbs
Sep 22 13:02:59 localhost account-replicator 1 successes, 0 failures
Sep 22 13:02:59 localhost account-replicator no_change:1 ts_repl:0 diff:0 rsync:0 diff_capped:0 hashmatch:0 empty:0
Sep 22 13:02:59 localhost account-server 10.100.0.13 - - [22/Sep/2013:05:02:59 +0000] "PUT /sdb1/122360/AUTH_test/myfiles" 201 - "-" "-" "container-updater 16242" 31.2634 ""
Sep 22 13:02:59 localhost object-replicator 549/549 (100.00%) partitions replicated in 70.73s (7.76/sec, 0s remaining)
Sep 22 13:02:59 localhost object-replicator 549 suffixes checked - 0.00% hashed, 0.00% synced
Sep 22 13:02:59 localhost object-replicator Partition times: max 34.5089s, min 0.0019s, med 0.0024s
Sep 22 13:02:59 localhost object-replicator Object replication complete. (1.18 minutes)
感觉是node2出问题了,好像有文件被锁住了,但找不解决办法......

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(9

别再吹冷风 2021-12-03 22:36:26

没有哦,我估计是回环文件的问题,毕竟回环文件只是测试所用,用真实机器试试吧。

把回忆走一遍 2021-12-03 22:30:49

你好,请问你这个问找到原因了吗?

勿忘初心 2021-12-03 20:39:56

你好,请问你这个问题后来有找到答案吗?

裸钻 2021-12-03 18:34:34

额。。。现在已经没做这方面了,时间太久了,记不太清了,现在都更新变化很多了。。。

反目相谮 2021-12-03 15:16:51

回复
恩,好的,谢谢楼主

命硬 2021-12-03 10:05:54

我卡到文件上传好久好久了!

尐偏执 2021-12-03 07:47:31

求demo!求例子!谢谢楼主!

路还长,别太狂 2021-12-03 02:41:36

还有就是反复确认是否跟大文件有关系么,再说1GB 不算是大文件 

旧伤慢歌 2021-12-01 10:20:19

不好意思啊,我有快一年吧研究这个了 哈哈,  你试着 把大文件切分成小文件 上传一下 试试,命令后面加个参数就能切分,不好意思帮不上你,

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文