-
Notifications
You must be signed in to change notification settings - Fork 69
RollSite: Configuring Polling Mode
Brycelin edited this page Jun 11, 2021
·
3 revisions
Polling client(IP: 192.168.0.1 partyID:10000):
eggroll.properties加入配置:
eggroll.rollsite.polling.client.enabled=true
route_table.json:
default字段配置Polling server的IP和端口,如下:
"default":
{
"default":[
{
"port": 9370, <--此处配置Polling server的端口-->
"ip": "192.168.0.2" <--此处配置Polling server的IP-->
}
]
}
Polling server(IP: 192.168.0.2 partyID:10001):
eggroll.properties加入配置:
eggroll.rollsite.polling.server.enabled=true
eggroll.rollsite.polling.concurrency=50 #polling 并发度,可根据机器资源配置
route_table.json:
对于polling客户端一方,加入如下配置:
"10000":
{
"default":[
{
"port": -1, <--Polling server无Polling client的信息,此处可不做配置,默认可配置-1-->
"ip": "", <--Polling server无Polling client的信息,此处可不做配置,默认可配置""-->
"is_polling": true <--配置true,Polling server则会标志10002为Polling client-->
}
]
}
- Overview
-
Eggroll FAQ
-
Configurations
- 3.1. eggroll.properties: Eggroll's Main configuration File
- 3.2. Environment Variables
- 3.3. RollSite: Configuring Route Table
- 3.4. RollSite: Configuring Secure Communications
- 3.5. RollSite: Configuring Polling Mode
- 3.6. RollSite: Passing Through a HTTP/1 Network
- Deployment