Day 31 of #DevOps Bootcamp Update! ๐Ÿš€

ยท

2 min read

Day 31 of #DevOps Bootcamp Update! ๐Ÿš€

๐Ÿš€ #Day 31 of #DevOps Bootcamp Update! ๐Ÿš€๐Ÿ”ฌ #Hands-on Practice:

Hello everyone!

init

systemd

Today was an exciting day at the #DevOps Bootcamp as we dived into the world of initialization and system management. We explored the differences between "#init" and "#systemd," understanding how the modern #systemd system improves service management and startup times. It's amazing to see how technology has evolved over time!

After that, we delved into the concept of #runlevels, which define the state of our system. Understanding runlevels helps us better manage and control the behavior of our system as it starts up or shuts down.

But the highlight of the day was exploring the concept of target units. Target units allow us to define specific system states, making it easier to control which services are active or inactive based on our needs. It's a crucial concept in managing the different modes our system can operate in.

๐Ÿ” #real-world Case Study: Understanding the Importance of Target Units in System Management ๐Ÿ”

๐ŸŽฏ #Scenario:

During peak hours, you define a custom "peak" target unit that includes all the services required to handle high traffic effectively. This target unit ensures that essential services like database, load balancer, and payment gateway are up and ready to provide a seamless experience to users.

#Switch to multi-user.target (peak)

#sudo systemctl isolate multi-user.target

#Start specific services needed for peak activity

sudo systemctl start nginx

#sudo systemctl start mysql

sudo systemctl start payment-gateway

sudo systemctl start caching-service

During #off-peak hours, you create a separate "off-peak" target unit that omits non-essential services, conserving resources and minimizing overhead. This enables your system to operate efficiently while still providing basic functionalities.

#Switch to minimal.target (off-peak)

sudo systemctl isolate minimal.target

#Stop non-essential services for off-peak efficiency

sudo systemctl stop analytics-service

sudo systemctl stop resource-hungry-task

#Day31 #DevOps #Bootcamp #systemd #init #runlevels #targetunits #realworldcase #Scenario #Switch #multiuser #start #offpeak #minimal #stop #peakactivity #offpeakefficiency #devopstraining #asadhanif3188

Did you find this article valuable?

Support Aqib Hafeez(DevOps enthusiast) by becoming a sponsor. Any amount is appreciated!

ย