How to setup divolte.io for multiple websites on the same server?

176 Views Asked by At

I've setup a data pipeline using divolte.io to stream click data from website to a server. I'm not sure how can I do this for multiple websites because all the streams can get mixed up. Any ideas on how to do this?

1

There are 1 best solutions below

2
On

On the same server, you need to bind to different ports

Create more than one config file, setting divolte.global.server.port to different values, then run the application with those configs.

In order to set a new config file, it actually needs to be in it's own directory

Divolte Collector will try to find configuration files at startup in the configuration directory. Typically this is the conf/ directory nested under the Divolte Collector installation. Divolte Collector will try to locate the configuration directory at ../conf relative to the startup script. The configuration directory can be overridden by setting the DIVOLTE_CONF_DIR environment variable. If set, the value will be used as configuration directory

Alternatively, you could run the exact same config within many containers/VMs, then use port mappings around that