Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

Table of Contents

Initial configuration

Your After the machine is deployed, your initial configuration file contains is located at /opt/ha-proxy-certbot/haproxy/config and it contains the following structure:

Code Block
defaults
  mode http
  timeout client 10s
  timeout connect 5s
  timeout server 10s 
  timeout http-request 10s

frontend myfrontend
  bind *:80

...

Granted, there’s no reply from a server because we haven’t configured any servers yet. Nevertheless, you can see that HAProxy is functional.


Add a backend server

Warning

If you want to modify the config file, you need to check the validity also. Please check command here: https://confluence.ecmwf.int/display/EWCLOUDKB/How+to+modify+HAproxy+config+file

In HAProxy, a frontend receives traffic before dispatching it to a backend, which is a pool of web or application servers. One of the servers in the backend will receive the request, form a response, and then send the response back through HAProxy to the client.

...