Troubleshooting HAProxy
Step 1: Verify that HAProxy is running
On ubuntu, run the following command:
sudo service haproxy status
You should see output like below if it is running:
haproxy is running.
Content-Type: multipart/mixed; boundary="===============0035287898381899620==" | |
MIME-Version: 1.0 | |
--===============0035287898381899620== | |
Content-Type: text/cloud-config; charset="us-ascii" | |
MIME-Version: 1.0 | |
Content-Transfer-Encoding: 7bit | |
Content-Disposition: attachment; filename="cloud-config.txt" | |
#cloud-config |
On ubuntu, run the following command:
sudo service haproxy status
You should see output like below if it is running:
haproxy is running.
#!/bin/bash | |
# Install pre-requisites | |
apt-get install software-properties-common | |
# Add PPAs | |
apt-add-repository ppa:brightbox/ruby-ng -y | |
apt-add-repository ppa:ansible/ansible -y | |
# Run update |
sudo apt-get install mysql-client
The below command will connect to the rds server specified after -h
and open a MySQL client connection that you can run commands against.
# !/bin/bash | |
# Script to use Fleetctl to stop and start containers using a rolling restart | |
# By Troy Fontaine with rolling restart script from http://engineering.rainchasers.com/coreos/fleet/2015/03/03/rolling-unit-restart.html | |
# Grab list of containers and assign to array | |
container_list=($(fleetctl list-units -fields=unit -no-legend | cut -f2 )) | |
# Prepare variable for later use | |
container="" |
Install pre-requisite packages
sudo apt update
sudo apt install -y gcc make ruby-build
Install rbenv
ansible_os_family
"Container Linux by CoreOS" = Container Linux "Debian" = Debian, Raspbian, Ubuntu
ansible myserver -m setup | less
# make sure to replace `<hash>` with your gist's hash
git clone https://gist.github.com/<hash>.git # with https
git clone git@gist.github.com:<hash>.git # or with ssh
"257-KSK" as a "Flag" and "13 - ECDSA Curve P-256 with SHA-256" as an algorithm.
Here are some commands to help troubleshoot network card issues on Ubuntu:
Determine Speed and Duplex
dmesg |grep eth0