Forum


Notice to all users

We are migrating towards a new forum system located at community.teamspeak.com, as such this forum will become read-only on January 29, 2020

Results 1 to 11 of 11
  1. #1
    Join Date
    February 2014
    Posts
    2

    ping difference of 50ms on virtual servers

    hello my friends,

    my last hope is here ...

    i have an NPL license and i use 3 virtual server with 300 slots (each server 100 slots).
    now the problem is that the 3 virtual servers has different pings.

    Firstserver : 50ms slots used (1/100)
    secondserver: 120ms (7/100)
    thirdserver : 69ms (1/100)

    my server load at this moment are 0.03

    OS is debian 7 wheezy

    i have tried many things - stop webserver nothing happend.
    and i can say its not a DDoS because my firewall says there is nothing to ban.
    @syslog and other logs i cant see anything.

    its a virtual server with 6gb ram and a Intel(R) Xeon(R) CPU E5-2630 0 @ 2.30GHz (6-core)


    now someone know the problem ?

  2. #2
    Join Date
    February 2013
    Posts
    47
    I think is firewall problem! And vm macchine usualy do this problem

  3. #3
    Join Date
    December 2004
    Location
    RF
    Posts
    3,008
    Quote Originally Posted by breaker92 View Post
    its a virtual server
    Start from here. Move your servers to real hardware. Then we'll talk.

  4. #4
    Join Date
    February 2014
    Posts
    2
    a sry i forget it to write..

    i had the same problem on a root server (no virtual)

  5. #5
    Join Date
    December 2004
    Location
    RF
    Posts
    3,008
    Then please provide some consistent data across a certain time period.
    Some random numbers caught in the air do not tell us a whole story.

  6. #6
    Join Date
    February 2012
    Location
    Germany
    Posts
    577
    There is probably nothing wrong at all.

    Ask yourself how the latency (ping time) is computed.
    If there is nobody connected, there is no ping time, since there are no packets to transfer and no packets to measure.
    If there is one person connected, the ping is the time the packets take from the server to this person.
    If there are 7 persons connected, the ping time is ... well, what is it then? I assume it is the mean value of the 7 individual ping times to the 7 persons.

    The ping time depends not only on the server performance, it also depends on the client performance and the performance of the internet connections of all of the clients.

    So you can answer the question from the thread opener: It depends on the connected clients. On his first and third server, there is 1 person connected, so it is the ping time of this person - probably the thread opener himself. A difference of 19ms is acceptable, I think, since he probably doesn't talk much to himself, so the server doesn't have many packets to measure. In the second server, it is the mean value of its 7 connections. 120ms is quite high, perhaps some of them are connected from overseas.

    Example from my server:

    I'm monitoring my tiny server, so I can provide you with some graphs. All 3 represent the same time frame. Compare the traffic with the ping times - they only barely correspond. At about 20:30 the users changed: before 20:30, there were some people with high ping times online who left at about 20:30. The others left about midnight. One of them had a higher personal ping time than the others, and he left after all of the others, so there is a small ping peak at midnight.
    After that, only one client was still online with a good connection of about 20 ms ping time.

    Name:  1.png
Views: 1534
Size:  17.8 KB

    Name:  2.png
Views: 1544
Size:  39.5 KB

    Name:  3.png
Views: 1496
Size:  19.9 KB
    Last edited by Schlumpi; February 6th, 2014 at 01:13 PM.

  7. #7
    Join Date
    December 2004
    Location
    RF
    Posts
    3,008
    Thanks, Schlumpi, that's the kind of data that tells the story.
    Mind if I ask, what you are using to collect the data?

  8. #8
    Join Date
    February 2012
    Location
    Germany
    Posts
    577
    I use cacti for monitoring. cacti is a monitoring framework around rrdtool, which provides the graphs. Usually, cacti works with snmp, but you can monitor everything by writing additional scripts. For Teamspeak, I wrote a script that gets values from the serverinfo query command and feeds them into cacti.

  9. #9
    Join Date
    December 2004
    Location
    RF
    Posts
    3,008
    Quote Originally Posted by Schlumpi View Post
    For Teamspeak, I wrote a script that gets values from the serverinfo query command and feeds them into cacti.
    Yeah, I was mainly interested in this part. Share?

  10. #10
    Join Date
    February 2012
    Location
    Germany
    Posts
    577
    Sure, I attach it. In the zip file, there is the php script (command line, not web-based) to get the data and the 4 xml definition files for cacti to create the required data and graph templates.

    Using the data and graph templates within cacti is a bit tricky, because I made it so that you only create one huge data source and 4 graphs that all use that data source. The automated graph- and data source creation is not fit for this setup.

    Use it this way:
    - put ss_teamspeak3.php into /usr/share/cacti/scripts
    - import the xml files in cacti
    - create your host (device), if you did not have it already.
    - Go to "Data Sources" and click "Add".
    - manually create the data source for your server (here you provide your data for your virtual server id, username and password)
    - Go to "graph management" and click "Add"
    - manually create the graph you want and manually assign the graph item fields.
    Attached Files Attached Files

  11. #11
    Join Date
    December 2004
    Location
    RF
    Posts
    3,008
    Thanks.
    PHP is even better. If I get a headache from it, I'll be able to wrest it myself, at least

Thread Information

Users Browsing this Thread

There are currently 1 users browsing this thread. (0 members and 1 guests)

Similar Threads

  1. Too many virtual servers - NPO?
    By Lexenstar in forum Server Support
    Replies: 4
    Last Post: February 8th, 2015, 02:53 PM
  2. [Not possible] NPL +2 virtual servers +2 physical servers
    By Un0rThOd0x in forum Server Support
    Replies: 4
    Last Post: June 18th, 2014, 07:57 AM
  3. Replies: 1
    Last Post: October 8th, 2012, 03:44 PM
  4. Replies: 1
    Last Post: May 12th, 2012, 05:46 PM
  5. virtual servers
    By justshootme85 in forum Windows
    Replies: 1
    Last Post: February 27th, 2012, 02:11 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •