The server can clone itself into multiple processes upon startup, this enables you to scale it on multiple cores.
Multiple processes can serve different addresses, but still share the same working directory and cache.
-You can add start and stop processes on runtime based on the load.
+You can add, start and stop processes during runtime based on the load.
.. code-block:: bash
bash(3533)─┬─kresd(19212)─┬─kresd(19212)
│ ├─kresd(19212)
│ └─kresd(19212)
- └─pstree(19460)
+ └─pstree(19460)
.. _daemon-reuseport:
if (can_satisfy(cur)) {
/* This flag makes the resolver move the query
* to the "resolved" list. */
- query->flags |= QUERY_RESOLVED;
+ cur->flags |= QUERY_RESOLVED;
return KNOT_STATE_DONE;
}