Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

两个 Fastdht 一直连接超时并重连 #6

Open
lostsnow opened this issue Jun 6, 2019 · 1 comment
Open

两个 Fastdht 一直连接超时并重连 #6

lostsnow opened this issue Jun 6, 2019 · 1 comment

Comments

@lostsnow
Copy link

lostsnow commented Jun 6, 2019

如图

图片

两台 Fastdht 版本配置一致

[2019-06-06 09:20:12] INFO - FastDHT v2.01, base_path=/opt/fastdht, total group count=1, my group count=1, group server count=2, connect_timeout=30, network_timeout=60, port=11411, bind_addr=10.10.1.165, max_connections=4096, accept_threads=1, max_threads=32, max_pkg_size=64 KB, min_buff_size=64 KB, store_type=BDB, cache_size=64 MB, db_type=btree, db_prefix=kiwi, page_size=4096, sync_db_time_base=00:00, sync_db_interval=86400s, db_dead_lock_detect_interval=1000ms, sync_wait_msec=100ms, allow_ip_count=506, sync_log_buff_interval=10s, need_clear_expired_data=1, clear_expired_time_base=04:00, clear_expired_interval=86400s, write_to_binlog=1, sync_binlog_buff_interval=60s, compress_binlog_time_base=02:00, compress_binlog_interval=86400s, sync_stat_file_interval=300s, write_mark_file_freq=5000, thread_stack_size=1024 KB, if_alias_prefix=, store_sub_keys=0

@lostsnow
Copy link
Author

lostsnow commented Jun 6, 2019

又看了下 超时不是 Fastdfs 导致的 是两个 Fastdht 之间 会一直超时一直重连

A->B 会超时 但是 B->A 不会

A:

accept(0, 0x7ffe74d03ee0, 0x7ffe74d03edc) = -1 EAGAIN (Resource temporarily unavailable)
accept(0, 0x7ffe74d03ee0, 0x7ffe74d03edc) = -1 EAGAIN (Resource temporarily unavailable)
accept(0, 0x7ffe74d03ee0, 0x7ffe74d03edc) = -1 EAGAIN (Resource temporarily unavailable)
accept(0, 0x7ffe74d03ee0, 0x7ffe74d03edc) = -1 EAGAIN (Resource temporarily unavailable)

B:

accept(0, {sa_family=AF_INET, sin_port=htons(54638), sin_addr=inet_addr("10.10.1.165")}, [16]) = 114
write(67, "r\0\0\0", 4)                 = 4
accept(0, 0x7ffc7177e810, [16])         = -1 EAGAIN (Resource temporarily unavailable)
accept(0, {sa_family=AF_INET, sin_port=htons(54652), sin_addr=inet_addr("10.10.1.165")}, [16]) = 120
write(85, "x\0\0\0", 4)                 = 4
accept(0, 0x7ffc7177e810, [16])         = -1 EAGAIN (Resource temporarily unavailable)
accept(0, {sa_family=AF_INET, sin_port=htons(54668), sin_addr=inet_addr("10.10.1.165")}, [16]) = 121
write(88, "y\0\0\0", 4)                 = 4
accept(0, 0x7ffc7177e810, [16])         = -1 EAGAIN (Resource temporarily unavailable)
accept(0, {sa_family=AF_INET, sin_port=htons(54682), sin_addr=inet_addr("10.10.1.165")}, [16]) = 122
write(91, "z\0\0\0", 4)                 = 4
accept(0, 0x7ffc7177e810, [16])         = -1 EAGAIN (Resource temporarily unavailable)
accept(0, {sa_family=AF_INET, sin_port=htons(54698), sin_addr=inet_addr("10.10.1.165")}, [16]) = 123
write(94, "{\0\0\0", 4)  

@lostsnow lostsnow changed the title Fastdfs 连 Fastdht 每上传一次 Fastdht 就连接超时并重连 两个 Fastdht 一直连接超时并重连 Jun 6, 2019
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant