• 1 Post
  • 11 Comments
Joined 1 year ago
cake
Cake day: April 30th, 2025

help-circle

  • You mean in the context of high availability?

    tl;dr: It’s to test if the cluster fail-over configuration is working properly.

    So this was before things like Kubernetes or Terraform were a thing, so had to be done by the operating system itself. The simplest HA cluster is made of two nodes, one in “active node”, the other “passive”. The active node does all the work, and the passive node just keeps its data synchronised with the active node. I used to use DRBD for this, which is a system for copying writes to the active node over a network link to the passive node. That only gives you a “second, up-to-date copy” which is not that useful on its own - you also need a way to automatically switch over to using the passive node if the active one “dies”, and for that I used to use “heartbeat”, which simply passes packets back and forth between the two cluster members - ping-pong style - and if the passive node notices that the active node hasn’t sent its scheduled packet for, say, 10 seconds, it cuts it off the current active node (kills it), and promotes itself to the active role, thus preserving the service. Killing the “other node” is necessary to stop data corruption or user requests going to a node that can’t actually service them, and is called STONITH - Shoot The Other Node In The Head. STONITH can involve an electronically controlled switch, which literally cuts off power to the “other” node, or can isolate it on the network, by shutting down its network ports on the switch, or in a VM setup, sending a notification to the hypervisor to kill the VM.

    The reason you need to be able to kill the kernel on the active node, is that when you manually shut down the active node, it automatically informs the passive node that it’s going down, known as an “orderly fail-over”, and you’re not actually testing if the heartbeat fail-over works, you’re just testing an orderly fail-over. Killing the active node’s kernel tests that the passive node is properly configured to take over during a catastrophic failure of the active node. You can watch the heartbeat status go from “up” to “down”, and then see the passive node decide to take over, promote itself and bring up its services, and begin processing requests.

    To make sure it’s all working, you need to test orderly fail-overs first, from both nodes, then test disorderly fail-overs both ways, by using the kernel gun on the active node.

    Things moved on from Heartbeat-based HA clusters to multimode clusters managed by Corosync and other software, enabling other strategies to be employed. This was eventually supplanted by “orchestration” systems like Kubernetes, and proprietary Virtual Cloud systems that move this functionality to the platform rather than the operating system.


  • Nah man. “kill” doesn’t shut the system down quickly. This is the “instant death” way - the kernel reset gun - no shutdown scripts, no disk sync, just reset to BIOS boot sequence, instantly:

    As root:

    echo 1 > /proc/sys/kernel/sysrq

    echo b > /proc/sysrq-trigger

    If you change out the “b” in the second command for “o” it will just halt the kernel instead of rebooting. Still switched on, but the system is doing absolutely nothing.

    I used to use this trick all the time to test high availability server clusters.


  • Sounds great, look forward to seeing that. After using it a bit more, another thing occurred to me - there’s no way to open arbitrary files. I don’t use MarkDown for “just notes” or “just one thing”, I keep markdown files all over the place. I had set the repository directory to be that of my blog posts during first run, but then I can’t open things in my notes directory or documents folder, and I can’t see anywhere in the settings dialogue to change it. Am I missing something?



  • Seems quite good - I’ve tried a LOT of MarkDown editors over the years, but until quite recently, I’d stuck with Zettlr for a long time. I’ve recently reinstalled my laptop, which made me look for alternatives to some software, and I’ve been playing round with MarkText for the last few days, which seems nice.

    HelixNotes is definitely good - if I had to drop MarkText, I think I could get on well with it. I like that they have a debian repository, so I can keep it updated with the usual system update software. I downloaded the AppImage as a quick test, but it didn’t work because it was compiled against an old version of glibc.

    The only thing I don’t like so far is the format toolbar is at the bottom of the editor screen, and I haven’t found a way to move it.




  • Yep. Currently working through Autistic Burnout, and one of my symptoms is Dissociation. Whenever I’m slightly stressed or concentrate hard on something, it kicks in. My head feels a bit “spinny”, but I’m not dizzy; I feel a bit “high”, but without the pleasant buzz of weed; when I move around, I kind of feel like a floating balloon on a string being pulled round by a toddler. My interoception (internal sense) is terrible at the moment, so I don’t get body maintenance signals like need to pee or drink, until I’m almost desperate, and I feel emotionally numb - I mostly seem to only “feel” strong negative emotions, positive ones if felt at all are pretty distant. I also get visual snow - like TV static in my vision - and a “laggy” feeling, which is often independent of, but somehow connected with the dissociation, which feels like living in a 3D game with too low a frame rate - my perception of my movement becomes stuttered, almost like there is a strobe light on, and it feels like I’m moving through treacle. It’s a bundle of fun.

    Edit: I’d also intended to say, but I got distracted by my cat asking for food, that I hope you feel better soon. I’m sorry you are having to live through this. I find for me, it takes a few days to a week to wear off after I’ve been stressed - it seems to peak a day or so later, and then peter out over a number of days, as long as I avoid stress. I hope you can avoid your trigger.


  • In 2011, I worked in West Bromwich, greater Birmingham, UK, on Birmingham Road, where it joined High Street. The news had been reporting on riots starting in Tottenham, London, and it was said that they were spreading. One lunch time during this time, I went out to get lunch from a great Indian sweet shop called Dhillons that did an amazing Samosa Chaat, which was about 5 minutes walk down the road from our office. As I got closer, I could see a crowd and police further down the road, not far from the sweet shop, and coming towards me. Then I saw smoke, and turned around, and went back to the office, without my samosa chaat. Loads of busies with full blues and two’s on (police cars with sirens and lights on) started whizzing past, towards the trouble, and this continued all afternoon. When I left, the air was cloyed with smoke, and the street towards the sweet shop was cordoned off. The next day we learnt that the sweet shop got smashed up, and their van was torched, one of many that got hit. Nearly got caught up in a riot!