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: content/features/proxy/configure.md
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -81,8 +81,8 @@ Replace the following:
81
81
82
82
* <var>POOL_NAME</var>: a name for this pool—for example, `northeast_1`.
83
83
{{< callout type="warning" >}}Don't start any pool name with `set_`. That name style is reserved for sets of pools. For more information, see [Define sets of pools](#sets).{{</callout>}}
84
-
* <var>POOL_OPTIONS</var>: (optional) a comma-separated list, in `key=value` format, of settings for the proxy to apply to this pool. For a list of settings, see [Pool API]({{<legacy_proxy_base_path>}}#pool-api).
85
-
* <var>BACKEND_OPTIONS</var>: (optional) a comma-separated list, in `key=value` format, of settings for the proxy to apply to all of the backends in the pool. For a list of settings, see [Backend API]({{<legacy_proxy_base_path>}}#backend-api).
84
+
* <var>POOL_OPTIONS</var>: (optional) a comma-separated list, in `key=value` format, of settings for the proxy to apply to this pool. For a list of settings, see [Pool API]({{<proxy_base_path>}}/api-reference#pool-api).
85
+
* <var>BACKEND_OPTIONS</var>: (optional) a comma-separated list, in `key=value` format, of settings for the proxy to apply to all of the backends in the pool. For a list of settings, see [Backend API]({{<proxy_base_path>}}/api-reference#backend-api).
86
86
* <var>HOST</var>: the IP address or hostname of the Memcached server you are defining as a backend.
87
87
* <var>PORT</var>: (optional) the TCP port of the Memcached server you are defining as a backend. The default value is `11211`.
88
88
@@ -203,7 +203,7 @@ Replace the following:
203
203
204
204
#### The `cmap` section {#cmap}
205
205
206
-
To have the proxy handle requests differently depending upon the Memcached command that it receives, include a `cmap` section in your `routes{}` block. For example, you can configure the proxy to direct all `get` requests to one pool, regardless of prefix, and all `set` requests to a different pool.
206
+
To have the proxy handle requests differently depending upon the Memcached command that it receives, include a `cmap` section in your `routes{}` block. For example, you can configure the proxy to direct all `get` requests to a direct handler, regardless of prefix, and all `set` requests to a ttl-modifier handler.
The following example file demonstrates all four of the configuration file sections described earlier on this page:
244
244
245
245
```lua
246
-
-- Turn on the proxy's verbose mode.
246
+
-- Turn on the route library's verbose mode.
247
247
verbose(true)
248
248
249
249
-- Override a handful of default settings for proxy behavior.
@@ -408,7 +408,7 @@ Doing this involves the following steps:
408
408
409
409
1. Declare a _local zone_ in your proxy configuration file.
410
410
1. Attach zone labels to the pools within your set definitions.
411
-
1. In your route definitions, invoke a route handler that makes use of zone information. The only such handler defined by the standard route library is `route_zfailover`.
411
+
1. In your route definitions, invoke a route handler that makes use of zone information. Handlers supporting this typically start with a 'z', like `route_zfailover`
412
412
413
413
To declare the local zone and attach zone labels to your defined pools, modify your configuration file's `pools{}` block like this:
414
414
@@ -474,7 +474,7 @@ pools {
474
474
}
475
475
```
476
476
477
-
The only route handler that makes use of zone information is [`route_zfailover`]({{<proxy_base_path>}}reference#route_zfailover). The following proxy configuration excerpt extends the previous example with a `routes{}` block that uses `route_zfailover`.
477
+
The following proxy configuration excerpt extends the previous example with a `routes{}` block that uses [`route_zfailover`]({{<proxy_base_path>}}reference#route_zfailover).
478
478
479
479
```lua
480
480
routes {
@@ -490,7 +490,7 @@ routes {
490
490
},
491
491
492
492
default=route_allfastest {
493
-
children={ "set_main_pools"}
493
+
children="set_main_pools"
494
494
},
495
495
}
496
496
```
@@ -537,4 +537,4 @@ You can update your proxy configuration file without interrupting the proxy serv
0 commit comments