"Apply Changes / Graceful Restart" change?

Discussion in 'Feedback/Feature Requests' started by kc8yds, Aug 3, 2009.

  1. kc8yds

    kc8yds Active Member

    any chance in a future update you can make the graceful restart keep the old process running until all transfers have finished while starting a new one (with the updated configuration) for all new connections?

    i hate rebooting the server while 150-200 people are in mid download of a video file causing all their downloads to fail this would be a great feature for anyone using litespeed on a server handling large files that are being downloaded and get cut mid download by a reboot
    Last edited: Aug 3, 2009
  2. anewday

    anewday Moderator

    I requested this before. Hope George adds it soon.
    Last edited: Aug 3, 2009
  3. mistwang

    mistwang LiteSpeed Staff

    Right now, LSWS wait up to 5 minutes for a request to finish. Should be enough for most situations.
  4. kc8yds

    kc8yds Active Member

    with php requests?

    if i do a graceful restart the connections graph/stat goes right to 0 --- all downloads get reset

    (downloads are handled dynamically)
  5. mistwang

    mistwang LiteSpeed Staff

    The real time statistics will not include the connections from old LSWS instance. So, you should not use that as a reference. Try a real download.
  6. kc8yds

    kc8yds Active Member

    if i have a download going and do a graceful restart it ends immediately no 5 minutes given for it to finish

    it's like this on 3.x 4.0 and 4.1rc -- enterprise and standard versions and has been like this as long as i can remember on 5 different servers

    EDIT:--- looks like in 4.1rc it gives about 15 seconds and then closes -- no 5 minutes -- all previous versions close out right away and do not even give the 15 seconds
    Last edited: Aug 4, 2009
  7. anewday

    anewday Moderator

    Same here. Even 5 minutes is not long enough. Would it hurt to have it set to until the download finishes?
  8. kc8yds

    kc8yds Active Member

    pretty sure this shows it waiting 20 seconds then killing the old processes connections

    why not let them finish..

    2009-08-05 00:42:25.741 [NOTICE] Server restart request from admin interface!
    2009-08-05 00:42:25.742 [NOTICE] [Child: 3347] Start shutting down gracefully ...
    2009-08-05 00:42:25.744 [NOTICE] [Child: 3345] Start shutting down gracefully ...
    2009-08-05 00:42:55.001 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 3347 !
    2009-08-05 00:42:55.108 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 3345 !
    2009-08-05 00:42:55.168 [NOTICE] [PID:3343] Server Stopped!
  9. auser

    auser Super Moderator

    should be waiting 30 seconds instead of 20 seconds
  10. kc8yds

    kc8yds Active Member

    yes that was a typo on my part

    but it's still not the claimed "5 minutes" and i see no reason for it not to let it completely finish (say a 2 gb file is being downloaded whats the point in just giving 5 minutes...)
  11. anewday

    anewday Moderator

    It also contradicts "LiteSpeed Web Server supports graceful restart with zero downtime for configuration changes and software updates."

Share This Page