简体   繁体   English

Erlang节点连接超时

[英]Erlang node connection timeout

I have a bunch of erlang nodes running on a single machine, and they are all connected in a network.我有一堆 erlang 节点在一台机器上运行,它们都连接在一个网络中。 Sometimes the machine our application is on will be under extremely heavy load for several minutes.有时,我们的应用程序所在的机器会在几分钟内承受极高的负载。 Often, after things return to normal, my erlang nodes think that they were disconnected, and I have to manually call net_adm:ping on each one of them to get them to re-connect to the network.通常,在一切恢复正常后,我的 erlang 节点会认为它们已断开连接,我必须手动调用每个节点的net_adm:ping以使它们重新连接到网络。

Any ideas on how I can avoid this situation?关于如何避免这种情况的任何想法?

You can increase the value of net_ticktime kernel configuration option so nodes will be pinged more infrequently.您可以增加net_ticktime kernel 配置选项的值,这样节点的 ping 频率就会降低。 See also net_kernel:set_net_ticktime .另请参见net_kernel:set_net_ticktime Note, however, that all communicating nodes should have the same net_ticktime value specified.但是请注意,所有通信节点都应指定相同的net_ticktime值。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM