Mage.Server excessive network bandwidth (Issue 2812)
Posted: 16 Apr 2017, 14:25
This is topic to discuss current state on Issue 2812:
"Xmage server uses excessive network bandwidth"
At the moment gathering statistics:
1. Played one EDH game (around 35-40 turns)
It results in 2,5 Mb in and 35 Mb out for server
2. Looking for information on daily load
TBD
Actually the reason is clear: we are sending gameview too often even when not required.
What can be done? Long ago I remember having idea to implement sending game diff instead.
But it's not so easy to implement and bugs are possible as in case of lost packets next gamestate update on client won't restore it (as it does now).
It also may increase Memory usage (as you need to store previous state to get diff from) and CPU usage Server (you need to create diff for every server message).
Probably issue is somewhere in different place, then we need to add wrapper to start tracking it.
"Xmage server uses excessive network bandwidth"
At the moment gathering statistics:
1. Played one EDH game (around 35-40 turns)
It results in 2,5 Mb in and 35 Mb out for server
2. Looking for information on daily load
TBD
Actually the reason is clear: we are sending gameview too often even when not required.
What can be done? Long ago I remember having idea to implement sending game diff instead.
But it's not so easy to implement and bugs are possible as in case of lost packets next gamestate update on client won't restore it (as it does now).
It also may increase Memory usage (as you need to store previous state to get diff from) and CPU usage Server (you need to create diff for every server message).
Probably issue is somewhere in different place, then we need to add wrapper to start tracking it.