Author Topic: Server Auto-Restart  (Read 6432 times)

Offline Tyrex

  • we won spam
  • Gold Member
  • *
  • Posts: 512
    • View Profile
    • Awards
Server Auto-Restart
« on: February 07, 2012, 09:06:36 PM »
OA and its unpredictability causes many server crashes, way too frequently.  Instead of addressing OA's crashing problem, it would be much easier to just set up a server auto-restarter.  I would not be as annoyed as I am when the server spontaneously crashes, as long as it restarts soon after.  This next day thing is just atrocious.  I'm not sure if Rofl directly hosts the servers himself, or has someone else do it... But I was searching around and I discovered this: http://tinyurl.com/7fsnepsServerChecker on the other hand communicates directly with the server the same way a player would, so if the server doesn't respond to user queries it will get restarted. On top of that, ServerChecker is completely free.

TL;DR: Server Auto-Restarter Instead of Waiting
BTW, sorry for the raging.
                                                                                                       -Tyler

Offline Super Supreme Admiral Justin

  • Gold Member
  • *
  • Posts: 418
  • Awards [OCRP Award] You Own The Mall [OCRP Award] Secret Phrase [OCRP Award] Comrades [OCRP Award] Junkie
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #1 on: February 07, 2012, 10:23:59 PM »
Yeah this would be a good idea. But I don't know what the technical side of what they have going looks like.
Graphic artist | Web Designer | Gamer

Offline aeiou

  • Gold Member
  • *
  • Posts: 505
  • Awards [OCRP Award] Secret Phrase [OCRP Award] Social Player
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #2 on: February 08, 2012, 08:55:24 AM »
Not sure how this would work for us due to how our backend works, so I'll let Somone77 answer this one.

Offline Crap-Head

  • #OCRP2
  • Gold Member
  • *
  • Posts: 4,029
  • Awards [OCRP Award] Millionaire [OCRP Award] Secret Phrase [OCRP Award] Comrades [OCRP Award] Junkie
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #3 on: February 08, 2012, 08:55:40 AM »
The fact that the status bar already has an option to check if the server is frozen, and the admins has an option to restart servers (panel is currently broken but the system still works i believe), this should be pretty easy for Somone77 to do. On the box, there is a check that updates the status panel, extend that to restart a server if its frozen for x amount of seconds.

Could make a check and set the value to the value + 1, and if that reaches 5 or something, it would restart.
Please do not add me on Steam because you have in-game problems. Make a thread in the correct board on the forum and i will respond to that whenever i have time.

Offline ???????£??Rose Nocturna???

  • Kitsune Developer
  • Gold Member
  • *
  • Posts: 1,023
  • Awards [OCRP Award] Secret Phrase [OCRP Award] Evo City Half Marathon [OCRP Award] Social Player [OCRP Award] You Own The Mall
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #4 on: February 08, 2012, 12:18:28 PM »
Personally, I would set it for a minute or two, if its like 5-10 seconds, a simple bit o lag would reset the server, or a 3 second shellbooter for example, same thing.

Offline aeiou

  • Gold Member
  • *
  • Posts: 505
  • Awards [OCRP Award] Secret Phrase [OCRP Award] Social Player
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #5 on: February 08, 2012, 01:00:39 PM »
Personally, I would set it for a minute or two, if its like 5-10 seconds, a simple bit o lag would reset the server, or a 3 second shellbooter for example, same thing.


The status bar is updated every one minute, so a five value would mean five minutes for a restart..

Offline TOMASAS

  • da best xd
  • Gold Member
  • *
  • Posts: 802
  • Awards [OCRP Award] Millionaire [OCRP Award] Secret Phrase [OCRP Award] Social Player [OCRP Award] Owner Party
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #6 on: February 08, 2012, 02:21:51 PM »
Unless this has a proper interface, I would have to say no.
Stop assuming things.

bitcoin: 1Fq4EFYLwvktC3uKM6d6qu8irSwepqigAX

Offline Super Supreme Admiral Justin

  • Gold Member
  • *
  • Posts: 418
  • Awards [OCRP Award] You Own The Mall [OCRP Award] Secret Phrase [OCRP Award] Comrades [OCRP Award] Junkie
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #7 on: February 08, 2012, 05:36:39 PM »
Unless this has a proper interface, I would have to say no.

Just because it doesn't have a stupid friendly interface doesn't mean it wont work ya know.

Still would be worth a try IMO. May actually lead to more uptime and Graphics cards donations for rofl.
Graphic artist | Web Designer | Gamer

Offline Tyrex

  • we won spam
  • Gold Member
  • *
  • Posts: 512
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #8 on: February 08, 2012, 05:40:22 PM »
Unless this has a proper interface, I would have to say no.

Just because it doesn't have a stupid friendly interface doesn't mean it wont work ya know.

Still would be worth a try IMO. May actually lead to more uptime and Graphics cards donations for rofl.

^ That.  I don't think a proper cure will ever come out for preventing the crashes as how much shit is piled into OA.  However, reducing the downtime would also increase uptime, therefore promoting the server even further.

Offline Somone77

  • Developer
  • *
  • Posts: 652
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #9 on: February 08, 2012, 06:26:09 PM »
In essence, the back end is already there, and it would take me less than a second for me to do it, but lets look at what you guys are actually requesting here.

The tool posted above works the same exact way as my status bar does. It, first, pings to server to test its connection, then, connects via steam queries to verify that it's processing. If it's connecting, but not processing, it resturns "Frozen".

I've thought many times about having the server auto restart when detected as frozen, however, there is a huge chance of false detection. Since the updater runs once every minute, if, at that EXACT minute, the server lags for a second (you know that red connection text on your screen? That would cause this.) it would restart, even if it was just a small lag. This is why I implemented the server management page.

The management page allowed admins to restart servers if they're down, this means that a person can verify that it's down, not just lag.

tl;dr it already works, it's just RTLK broke the forum and you'll have to wait while we fix shit.

Offline psycho

  • Gold Member
  • *
  • Posts: 218
  • Awards [OCRP Award] Full Economy [OCRP Award] Secret Phrase [OCRP Award] Evo City Half Marathon [OCRP Award] Social Player
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #10 on: February 08, 2012, 06:30:14 PM »
Make it so it only restarts if it sense it's frozen twice in a row?
game over

Offline Somone77

  • Developer
  • *
  • Posts: 652
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #11 on: February 08, 2012, 06:42:09 PM »
It's hard to see if you don't watch the updater while it's running, but false detection is extremely common. You guys would think this is nice, until the day that it restarts when you're growing weed or whatever you guys do.

Trust me when I say: Let me admins restart them.

Offline Tyrex

  • we won spam
  • Gold Member
  • *
  • Posts: 512
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #12 on: February 08, 2012, 06:45:34 PM »
Let me admins restart them.

It's fine if the admins restart them... But I just don't see why it takes a day to restart the server.

Offline aeiou

  • Gold Member
  • *
  • Posts: 505
  • Awards [OCRP Award] Secret Phrase [OCRP Award] Social Player
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #13 on: February 08, 2012, 06:58:01 PM »
Let me admins restart them.

It's fine if the admins restart them... But I just don't see why it takes a day to restart the server.


Did you even read what he said? The server management page is temporarily broken due to issues.

Offline Somone77

  • Developer
  • *
  • Posts: 652
    • View Profile
    • Awards
Re: Server Auto-Restart
« Reply #14 on: February 08, 2012, 07:19:27 PM »
Also, the problem might not be just a restart. If a server is unable to connect to a database, it will not work just because of a restart.

 

SimplePortal 2.3.7 © 2008-2024, SimplePortal