This action requires saving a cookie to remember the page's state. You can read more about that on the cookies page.

 

Example docs: DBPROXY

Released on: 2023-09-25

This is example documentation for the fairytale blog post. It is for an imaginary legacy infrastructure and is not intended to be use.


Table of contents

Quick overview

Heading Description
What HAProxy
Fault-tolerance DNS round robin.
Fail-over method Manual.
Hostnames (PROD|STAG|DEV)-DBPROXY-01(A|B) eg: PROD-DBPROXY-01A
Serves (PROD|STAG|DEV)-APP-[0-9][0-9](A|B) eg: PROD-APP-01A
Connects to (PROD|STAG|DEV)-DB-(M|S)-01A eg: PROD-DB-M-01A
Upstream documentation https://www.haproxy.com/documentation

Current considerations

None.

How to

View the current state

  1. Connect to the VPN.
  2. Browse to port 8404 on a specific proxy.

Quick links (modify as needed):

Stop traffic from going to specific DB server

NOTE: You almost always want to use the method described on the DB page, unless you are unable to reach the relevant DB machine during a network partition event.

  1. Connect to the VPN.
  2. Run the following command on each relevant proxy:
$ echo "set server database/prod-dbproxy-01a state maint" | sudo socat stdio /var/run/hapee-1.6/hapee-lb.sock

Replace prod-dbproxy-01a with which ever server you want to disable.

More info about disabling servers directly in haproxy.

This post references

If your technical documentation would sound amazing when narrated by someone like Morgan Freeman, or Judi Dench, it's not documentation.

Posts using the same tags

If your technical documentation would sound amazing when narrated by someone like Morgan Freeman, or Judi Dench, it's not documentation.

More...

Home | About | Contact | Cookies