I referenced the link https://docs.vespa.ai/documentation/docker-containers-in-production.html to control the config server and services in two different docker containers.
I have a single machine on which I am trying to run separate containers for configserver(one container) and services(one container)
But, I am unable to understand what is the use of services container, as I am still able to work with only config server container running.
Docker commands I am running:
docker run --hostname vespa-cfg --name vcfg --privileged -e VESPA_CONFIGSERVERS=vespa-cfg -p 19071:19071 -p 7070:8080 -d vespaengine/vespa:6.330.51 configserver
docker run --hostname vespa-ssrv --name vsrv --privileged -e VESPA_CONFIGSERVERS=vespa-cfg -p 7080:8080 -d vespaengine/vespa:6.330.51 services
I have added following in my hosts.xml
<hosts>
<host name="vespa-cfg">
<alias>server01</alias>
</host>
<host name="vespa-ssrv">
<alias>service01</alias>
</host>
</hosts>
And in services.xml
<services version="1.0">
<admin version="1.0">
<adminserver hostalias="server01"/>
<configservers>
<configserver hostalias="server01"/>
</configservers>
</admin>
<container id="default-container" version="1.0">
...
<nodes>
<node hostalias="service01" />
</nodes>
...
</container>
<content id="default-content" version="1.0">
...
<nodes>
<node hostalias="service01" distribution-key="0" />
</nodes>
...
</content>
</services>
I also tried persisting the data on both containers on separate volume points but all the data is still being persisted in the configserver volume point directory.
The query APIs are also working with configserver on port 7070, and not on services' 7080.
Please, help.