Poll

Online file storage like Google Drive? (monthly prices)

50GB ($3.00)
41 (11.2%)
100GB ($4.50)
17 (4.7%)
250GB ($7.50)
10 (2.7%)
500GB ($12.50)
7 (1.9%)
750GB ($16)
6 (1.6%)
1TB ($20)
30 (8.2%)
2-8TB (proportional to 1TB price)
0 (0%)
8-16TB (proportional to 1TB price)
43 (11.8%)
Prices too high (READ)
44 (12.1%)
No desire
167 (45.8%)

Total Members Voted: 365

Author Topic: Kaphost Blockland Servers  (Read 658365 times)

Could you somehow set a global variable to the % of cpu used by said server, so it can be called ingame, perhaps to auto-clear bricks whenever it goes over a certain amount..?

Individual CPU usage is not the problem, it's too many servers using a rather large value of CPU at the same time.

I must be misreading the stats you posted a few pages ago, then
It mentioned how our server had 22% CPU usage. Doesn't this mean that our server was using 22% of all available power, and that there was ~%78 left over for other people?

I must be misreading the stats you posted a few pages ago, then
It mentioned how our server had 22% CPU usage. Doesn't this mean that our server was using 22% of all available power, and that there was ~%78 left over for other people?
HOSTPLAYER COUNT   CPU AVERAGE   SERVER TYPE    RATE
Jorgur438.38%Slopes TDM0.19%/player
Psp2813.75%CityRP/G0.49%/player
Cciamlazy   2617%CityRP/G0.65%/player
Hankyje   1118.5%CityRP/G1.54%/player
Hankyje's server was targeted the most because it had the fewest players (by far) and yet the highest CPU usage. There would be something seriously inefficient with the coding for that much CPU to be used.

Look at the total usage across those 4 popular servers. The 4 add up to 57.63%, this obviously leaves 43.37% for other servers, which wasn't enough for the 26 servers I was hosting at the time.

Jorgur had about 43 players, and used less than half CPU of the other servers. Jorgur's server, being a TDM, has projectiles moving everywhere, vehicles moving and crashing, and things exploding. In the average CityRPG, There are plenty of moments when vehicles aren't moving and no projectiles are flying, pretty much people are only moving around. Now that I think about it, I bet that CityRPG's heavy CPU usage is partially caused by constant polling of who is on what lot. Just a guess.

Blockland is also the only game where you can gamble resource usage because of the player distribution which is unlike other multiplayer games. It is virtually impossible for 10 players to be in every server at the same time. You guys are the beneficiaries of this, because I can offer the same price to popular servers and unpopular ones. The game is way too small for many servers I host to be popular all at the same time.




WebSockets are primitive.
Websockets are implemented by any browser worth using.

Websockets are implemented by any browser worth using.
No easy server-sided materials to do this.

I think I understand now. I'll try to make it more efficient, which is probably impossible. Alternately, just stop running it >.>
Now that I think about it, I bet that CityRPG's heavy CPU usage is partially caused by constant polling of who is on what lot. Just a guess.
I doubt this is it. I could be wrong, but to my knowledge CityRPG only deals with lots when you enter/leave them.
Also, the server had only just gone up. I have no idea why it used so much power that quickly.

I think I understand now. I'll try to make it more efficient, which is probably impossible. Alternately, just stop running it >.>I doubt this is it. I could be wrong, but to my knowledge CityRPG only deals with lots when you enter/leave them.
Also, the server had only just gone up. I have no idea why it used so much power that quickly.
I worded that wrong, but I suggested something that happened often, and I meant to say how there is constant polling for what lot each player is standing on. (note: when you exit and enter a lot, notice how it's very quick to change the ownership)



Wah, I need it to interface with my PHP scripts on the webserver.
What?

Tornado.websocket is a java application. I need, and also want, it to interface with PHP scripts. (they're already written)