Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: How graceful is Lassie?
PostPosted: Fri Oct 23, 2015 10:18 am 
Offline
Newbie

Joined: Fri Oct 23, 2015 9:56 am
Posts: 2
Hello All,

Right now I'm having to shutdown my Linode while troubleshooting excessive cpu usage. With my machines at home 'shutdown -r' or 'shutdown -h' results in a graceful shutdown of services.

I know all the documentation and forum posts say Lassie is the way to go, but does she do it gently or is it a more like throwing the power switch?

Thanks,

digger


Top
   
PostPosted: Fri Oct 23, 2015 10:30 am 
Offline
Senior Member

Joined: Mon Jul 05, 2010 5:13 pm
Posts: 392
Lassie never stops your Linode. If your Linode is shut down without a job being issued in the Manager, Lassie starts it.

If you stop your Linode via the Manager (or API), Linode sends a Ctrl-Alt-Delete, gives your Linode ~2 minutes to stop itself, and then pulls the plug.

- Les


Top
   
PostPosted: Fri Oct 23, 2015 11:32 am 
Offline
Newbie

Joined: Fri Oct 23, 2015 9:56 am
Posts: 2
Thanks for your help Les, but that still only partly answered what I was looking for -- I stopped using ctrl-alt-del a long time ago when I think it acted as a hard reset, so up to now I had no idea what it did. But your answer did point me in the right direction.

Looking further -- on a Fedora system it seems ctrl-alt-del used to be handled by /etc/inittab. Now days though it is handled by systemd and /usr/lib/systemd/system/ctrl-alt-del.target which initiates a reboot.servce. So it looks like Lassie's sending ctrl-alt-del initiates a gentle reboot

I'll then assume calling for a shutdown with Lassie will result in shutting down the Linode with a similar systemd service.

So given that 'shutdown -h now' in the Linode results in a reboot, if I want to actually shut it down, the way to do it is through Lassie which will initiate shutting down processes and services before the plug is pulled.

digger


Top
   
PostPosted: Fri Oct 23, 2015 3:33 pm 
Offline
Senior Member

Joined: Tue Aug 02, 2011 2:45 pm
Posts: 55
digger wrote:

So given that 'shutdown -h now' in the Linode results in a reboot, if I want to actually shut it down, the way to do it is through Lassie which will initiate shutting down processes and services before the plug is pulled.

digger


As akerl mentioned, you can't have Lassie initiate a shutdown on your behalf. Lassie is just a shutdown watchdog. It monitors your Linode and if it detects a shutdown it restarts the instance. The only time Lassie won't initiate a restart is if you choose the shutdown command inside the Linode Manager. I am not sure how graceful that is to be honest. I haven't used it all that much. The reason 'shutdown -h now' causes a reboot is because Lassie can't tell why your Linode shutdown and issues a reboot.

I found a pretty old post from caker that explains Lassie: https://blog.linode.com/2007/10/26/lass ... -watchdog/

Still think the post is pretty accurate.


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 4 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group