summaryrefslogtreecommitdiff
path: root/proto_proxy.h
Commit message (Collapse)AuthorAgeFilesLines
* proxy: allow workers to run IO optionallydormando2023-02-241-0/+1
| | | | | | | | | | | | | | | | | `mcp.pool(p, { dist = etc, iothread = true }` By default the IO thread is not used; instead a backend connection is created for each worker thread. This can be overridden by setting `iothread = true` when creating a pool. `mcp.pool(p, { dist = etc, beprefix = "etc" }` If a `beprefix` is added to pool arguments, it will create unique backend connections for this pool. This allows you to create multiple sockets per backend by making multiple pools with unique prefixes. There are legitimate use cases for sharing backend connections across different pools, which is why that is the default behavior.
* proxy: remove most references to settings globaldormando2022-09-151-5/+5
| | | | should make isolation/testing earlier.
* proxy: fix bug/crash for set commandsdormando2022-02-041-0/+1
| | | | | | | if a conn goes to sleep while reading set data from the network its coroutine would be lost, and crash/corruption on next resume. this now properly handles lifetime/cleanup of the coroutine.
* proxy: `-o proxy_uring` to enable io_uringdormando2022-01-261-1/+1
| | | | | instead of automatically attempting to use io_uring if compiled in, require a start option.
* proxy: initial commit.dormando2021-10-051-0/+26
See BUILD for compilation details. See t/startfile.lua for configuration examples. (see also https://github.com/memcached/memcached-proxylibs for extensions, config libraries, more examples) NOTE: io_uring mode is _not stable_, will crash. As of this commit it is not recommended to run the proxy in production. If you are interested please let us know, as we are actively stabilizing for production use.