Commit ce28b173 authored by Michal Karm Babacek's avatar Michal Karm Babacek Committed by Ondřej Surý

Tip for running kresd in containers.

Based on [issue 28](, we were able to boost kresd performance running in a Docker container on DockerCloud by nearly 100% by binding to a single interface:ipaddress. It might be handy for other users to know.
parent 62dc15ef
......@@ -244,6 +244,16 @@ Another example would show how it is possible to bind to all interfaces, using i
.. tip:: Some users observed a considerable, close to 100%, performance gain in Docker containers when they bound the daemon to a single interface:ip address pair. One may expand the aforementioned example with browsing available addresses as:
.. code-block:: lua
for k, v in pairs(addr_list["addr"]) do
if string.sub(v,1,string.len(addrpref)) == addrpref then
You can also use third-party packages (available for example through LuaRocks_) as on this example
to download cache from parent, to avoid cold-cache start.
......@@ -565,8 +575,8 @@ For when listening on ``localhost`` just doesn't cut it.
.. code-block:: lua
> net.tls_cert("/etc/kresd/server-cert.pem", "/etc/kresd/server-key.pem")
> net.tls_cert()
> net.tls("/etc/kresd/server-cert.pem", "/etc/kresd/server-key.pem")
> net.tls()
("/etc/kresd/server-cert.pem", "/etc/kresd/server-key.pem")
> net.listen("::", 853)
> net.listen("::", 443, {tls = true})
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment