Lag at My Hub Server

Discussion in 'Performance Tweaking' started by Zaino60, May 1, 2015.

  1. Zaino60

    Supporter

    Lately my HUB Server has been randomly lagging and it wasn't players problems because it was rather empty.
    If anyone could help me solving this problem I would be extremely grateful.
    > Timings: http://timings.aikar.co/?url=10964744
    > Spigot Version: http://gyazo.com/b4ed5ec0f733f37655c214a9e40ba444 (I can't actually update to 1.8.3 because Echopets and ProdigyPack plugins don't support 1.8.3 yet, but still I'm using the latest 1.8 spigot build so that shouldn't be the problem...)
    > Plugins: http://gyazo.com/e0bb508e5f5603cb6930f430cfd308ec
    Thanks :)
     
  2. CoreTokens plugin looks pretty intensive.
    Also, if your hub was rather empty,
    "Average Players: 52.57"?
     
  3. Take a longer sample than 16seconds...
     
    • Agree Agree x 2
  4. GeorgeHousley123

    Supporter

    Try adding 1-3 more hubs :)
     
  5. Zaino60

    Supporter

    That's very empty, I used to have 100+ players at hub server with NO PROBLEMS!
    http://timings.aikar.co/?url=10972941 AND http://timings.aikar.co/?url=10973003
    I hope that is enough to see what is causing this shitty lag, plz help me to solve it!
    I only have 1 bungeecord instance and I don't know how to have more in order to be able to have more Hubs. I may add another one soon but that aren't my plans atm, I just want to fix this lag now...
     
  6. GeorgeHousley123

    Supporter

    By hubs I mean lobby's, where all the players go.
    By adding more hubs your spreading out the load of players, lets say there is a restart on a server with 100 players.
    That's 100 players joining + normal people.
    Having 3 hubs means 33 people + normal people will be joining a hub, this will stop the lag. (Did when I had 300-500 players)
    Also make sure your bungee server is on a dedicated node.
     
    • Agree Agree x 1
  7. JamesJ

    Supporter

    Make a new Bungee server.
    Make a Redis server (Redis is a standalone program, http://redis.io/)
    Install RedisBungee on all your new/old proxy servers.
    Enter the Redis IP/username/password into the RedisBungee/config.yml
    Restart all your proxies.

    If you have multiple boxes that you can run a proxy on, you can add a new A record to your DNS pointing to your new IP. Or you can use SRV records.

    Other than that, hire someone to setup RedisBungee for you in S&R (or me ;))
     
  8. GeorgeHousley123

    Supporter

    You don't need 2 bungees for 700 players..., Just get a more powerful server with more cores.
     
  9. JamesJ

    Supporter

    Machines aren't infinitely powerful...
    It's more efficient to add more proxies than buy more servers.
    Lots of servers I know run off 1x Proxy per 500 players, so I'd suggest at least 2 proxies for this network.
     
    • Informative Informative x 1
  10. GeorgeHousley123

    Supporter

    True,
     
  11. Tokens plugin is pretty heavy, mainly the part that activates on a votifier vote
    (Tldr-d the rest of the chat)
     
    • Informative Informative x 1
  12. Zaino60

    Supporter

    Okay I contacted the Dev of CoreTokens plugin, thanks for the information.
    By the way, I will set another Bungee Instance soon, but meanwhile, how can I set up more than 1 hub server without having a second Bungeecord Instance? Is there a plugin or something that distributes all players between those hubs?
    Thanks