Connecting several OPAL clients to one server #173
-
Hello, I read in your documentation that you can connect several clients to one OPAL server, but I did not understand how this can be done. Could you please suggest how to do this or send a link to the documentation? |
Beta Was this translation helpful? Give feedback.
Replies: 2 comments
-
Hi Daniel, You can simply duplicate the opal_client service listed in the compose yaml (and call it for example opal_client2) to have another opal-client running in the same compose. (of course you'd need to update the exposed ports on the host machine, so you'll be able to access the OPAL-client and OPA directly) You can, of course, run OPAL-servers and clients without docker compose, checkout the other get-started within the OPAL Docs - to run them as python modules, or on plain docker, or even on K8s. There is nothing special you need to do to have the OPAL-server welcome more than one client; you can play with the amount of workers the server allocates (i.e. 'UVICORN_NUM_WORKERS=4' to improve performance, but that's optional. Hope this helps, |
Beta Was this translation helpful? Give feedback.
-
Hey @darkMark1999, moved the discussion here - as it's not really an issue - see Or's answer :) |
Beta Was this translation helpful? Give feedback.
Hi Daniel,
Yes you can point several OPAL-clients to the same OPAL-server.
A good place to start is with this docker-compose playground tutorial
You can simply duplicate the opal_client service listed in the compose yaml (and call it for example opal_client2) to have another opal-client running in the same compose. (of course you'd need to update the exposed ports on the host machine, so you'll be able to access the OPAL-client and OPA directly)
You can, of course, run OPAL-servers and clients without docker compose, checkout the other get-started within the OPAL Docs - to run them as python modules, or on plain docker, or even on K8s.
There is nothing special you need to do to have the O…