harmonyos2-harmony:和谐
和声2 #Harmony.js Harmony是用于nodejs(或任何类型的TCP服务器集群)的/smart/平衡模块。它不仅仅是一个基本的循环平衡器,并且能够持久连接、检测服务器超时、重新排队连接和加权平衡。该模块旨在涵盖许多不同的技术,并适用于/大多数/应用程序。如果您有想法或某些东西无法正常工作,请提交错误报告。 ##Single Server示例(所有客户端都在一台带有平衡器的服务器上) var harmony = require ( "node-harmony" ) ; //awww, harmony var http = require ( "http" ) ; //only for this example var s = new harmony . server ( { persistent : false // I don't care if connections *ALWAYS* go the same server , unavailable : function ( e , c ) { c . write ( "Unavailabl
10.21KB
文件大小:
评论区