You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/guides/uptime/loadbalancing/how-to-use-haproxy-for-load-balancing/index.md
+5-5Lines changed: 5 additions & 5 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -32,10 +32,10 @@ This guide will describe the installation and configuration of HAProxy for load-
32
32
33
33
sudo apt-get update && sudo apt-get upgrade
34
34
35
-
3. This guide uses private IP addresses in the example configurations. To set up private IPs and enable internal networking between your Linodes, follow the steps in our [Linux Static IP Configuration](/docs/products/compute/compute-instances/guides/manual-network-configuration/) guide.
35
+
3. This guide uses private IP addresses in the example configurations. To set up private IPs and enable internal networking between Linodes, follow the steps in our [Linux Static IP Configuration](/docs/products/compute/compute-instances/guides/manual-network-configuration/) guide.
36
36
37
37
{{< note >}}
38
-
This guide is written for a non-root user. Commands requiring administrative privileges are prefixed with `sudo`. If you’re new to using `sudo`, refer to our [Users and Groups](/docs/guides/linux-users-and-groups/) guide for more information.
38
+
This guide is written for a non-root user. Commands requiring administrative privileges are prefixed with `sudo`. Refer to our [Users and Groups](/docs/guides/linux-users-and-groups/) guide for more information on how to use `sudo`.
39
39
{{< /note >}}
40
40
41
41
## Installation
@@ -104,13 +104,13 @@ defaults
104
104
105
105
option dontlog-normal
106
106
107
-
3.You can also configure a separate log file for error messages using the following command:
107
+
3.A separate log file for error messages can be configured using the following command:
108
108
109
109
option log-separate-errors
110
110
111
111
## Configure Load Balancing
112
112
113
-
When configuring load balancing with HAProxy, you need to define two types of nodes: frontend and backend. The frontend node listens for incoming connections, while backend nodes handle the requests forwarded by HAProxy. A third node type, the stats node, can be set up to monitor the load balancer and the other two nodes.
113
+
When configuring load balancing with HAProxy, two types of nodes need to be defined: frontend and backend. The frontend node listens for incoming connections, while backend nodes handle the requests forwarded by HAProxy. A third node type, the stats node, can be set up to monitor the load balancer and the other two nodes.
114
114
115
115
1. Open `/etc/haproxy/haproxy.cfg` in a text editor and add the following configuration for the frontend node:
116
116
@@ -124,7 +124,7 @@ frontend haproxynode
124
124
125
125
126
126
{{< note respectIndent=false >}}
127
-
Throughout this guide, replace `203.0.113.2` with the IP address of your frontend node. 192.168.1.3 and 192.168.1.4 will be used as the IP addresses for the backend nodes.
127
+
Throughout this guide, replace `203.0.113.2` with the IP address of the frontend node. 192.168.1.3 and 192.168.1.4 will be used as the IP addresses for the backend nodes.
128
128
{{< /note >}}
129
129
130
130
This configuration block specifies a frontend node named **haproxynode**, which is bound to all network interfaces on port 80. It will listen for HTTP connections (TCP mode can be used for other purposes) and direct traffic to the back end group, **backendnodes**.
0 commit comments