Posts

Keeping Your SSH Connections Alive: Configuring ServerAliveInterval and ServerAliveCountMax

Image
Maintaining a stable SSH connection is essential when working on remote servers. Disconnections due to inactivity can interrupt workflows and be quite frustrating. Fortunately, you can configure SSH to send periodic keep-alive messages, preventing your connection from timing out. Step-by-Step Guide 1. Open the SSH Client Configuration File Use your preferred text editor to modify the SSH configuration file. For example, with  vim : sudo vim /etc/ssh/ssh_config If OpenSSH is installed via Homebrew, the configuration file might be located at: /usr/ local /etc/ssh/ssh_config 2. Modify the Configuration Add the following lines after the  Host *  directive to apply these settings to all SSH connections: ServerAliveInterval 240 ServerAliveCountMax 10 ServerAliveInterval : Specifies the interval (in seconds) at which the client sends keep-alive messages to the server. In this case, every 240 seconds. ServerAliveCountMax : Limits the number of keep-alive messages sent w...

Deployment Strategies

Image
  Overview A Kubernetes deployment strategy defines an application’s lifecycle that achieves and maintains the configured state for objects and applications in an automated manner. Effective deployment strategies minimize risk. Kubernetes deployment strategies are used to:  Deploy, update, or rollback ReplicaSets, Pods, Services, and Applications  Pause/Resume Deployments  Scale Deployments manually or automatically  Types of deployment strategies The following are six types of deployment strategies: Recreate  Rolling  Blue/green  Canary  A/B testing  Shadow  You can use either a single deployment strategy or a combination of multiple deployment strategies. Recreate strategy In the recreate strategy, Pods running the live version of the application are all shut down simultaneously, and a new version of the application is deployed on newly created Pods.  Recreate is the simplest deployment strategy. There is a short downtime between ...