"Apply Changes / Graceful Restart" change?

kc8yds

Active Member
#1
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:

kc8yds

Active Member
#4
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)
 

mistwang

LiteSpeed Staff
#5
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.
 

kc8yds

Active Member
#6
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:

kc8yds

Active Member
#8
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!
 

auser

Super Moderator
#9
2009-08-05 00:42:25.742 [NOTICE] [Child: 3347] Start shutting down gracefully ...
2009-08-05 00:42:55.001 [NOTICE] [AutoRestarter] cleanup children processes and unix sockets belong to process 3347 !
should be waiting 30 seconds instead of 20 seconds
 

kc8yds

Active Member
#10
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...)
 

anewday

Well-Known Member
#11
It also contradicts "LiteSpeed Web Server supports graceful restart with zero downtime for configuration changes and software updates."
 
Top