Bug 1213 - Python module: support multiple instances
Python module: support multiple instances
Status: NEW
Product: unbound
Classification: Unclassified
Component: server
All All
: P5 enhancement
Assigned To: unbound team
Depends on:
  Show dependency treegraph
Reported: 2017-01-27 19:54 CET by episource
Modified: 2017-03-12 14:59 CET (History)
1 user (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description episource 2017-01-27 19:54:18 CET
Currently, it's not possible to use multiple instances of the python module. Actually, adding the word `python` to the `module-config:` option several times is not rejected by unbound. In the end, however, it's not a useable setup supported by unbound.

It happened to be quiet simple to prepare the python module for multiple instance support. @github I've prepared a feature branch proposing a possible solution. Please have a look at: https://github.com/episource/unbound/tree/dev/pythonmod-multi-instance/main

The proposed solution allows to reference the python module more than once within `module-config:` option. For each instance, a `python-script:` option needs to be added to the `python:` section, specifying the python script file to be used. The first python module picks up the first `python-script:` option, the second picks up the second script, and so on.
Comment 1 episource 2017-03-12 14:59:50 CET
Diff url has changed. The diff against current master can be found here: