Skip to content

Commit f7c5b9b

Browse files
committed
fixes for proxy configuration page
1 parent 48ce7ee commit f7c5b9b

File tree

1 file changed

+8
-8
lines changed

1 file changed

+8
-8
lines changed

content/features/proxy/configure.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -81,8 +81,8 @@ Replace the following:
8181

8282
* <var>POOL_NAME</var>: a name for this pool—for example, `northeast_1`.
8383
{{< 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).
8686
* <var>HOST</var>: the IP address or hostname of the Memcached server you are defining as a backend.
8787
* <var>PORT</var>: (optional) the TCP port of the Memcached server you are defining as a backend. The default value is `11211`.
8888

@@ -203,7 +203,7 @@ Replace the following:
203203

204204
#### The `cmap` section {#cmap}
205205

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.
207207

208208
```lua
209209
cmap = {
@@ -243,7 +243,7 @@ default = {{<var>}}HANDLER_TYPE{{</var>}}{ {{<var>}}HANDLER_ARGS{{</var>}} },
243243
The following example file demonstrates all four of the configuration file sections described earlier on this page:
244244

245245
```lua
246-
-- Turn on the proxy's verbose mode.
246+
-- Turn on the route library's verbose mode.
247247
verbose(true)
248248

249249
-- Override a handful of default settings for proxy behavior.
@@ -408,7 +408,7 @@ Doing this involves the following steps:
408408

409409
1. Declare a _local zone_ in your proxy configuration file.
410410
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`
412412

413413
To declare the local zone and attach zone labels to your defined pools, modify your configuration file's `pools{}` block like this:
414414

@@ -474,7 +474,7 @@ pools {
474474
}
475475
```
476476

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).
478478

479479
```lua
480480
routes {
@@ -490,7 +490,7 @@ routes {
490490
},
491491

492492
default = route_allfastest {
493-
children = { "set_main_pools" }
493+
children = "set_main_pools"
494494
},
495495
}
496496
```
@@ -537,4 +537,4 @@ You can update your proxy configuration file without interrupting the proxy serv
537537

538538
Replace <var>PROXY_PROCESS</var> with the process ID of the proxy.
539539

540-
If the updated configuration file is valid, then Memcached reloads its configuration and continues running. Otherwise, Memcached exits with an error.
540+
If the updated configuration file is valid, then Memcached reloads its configuration and continues running. Otherwise, the configuration is _not reloaded_ and the previous configuration is still used. Errors are sent to an event log viewable by running `watch proxyevents` against the proxy.

0 commit comments

Comments
 (0)