delightful-yak-60786
01/22/2024, 4:22 PMchilly-king-10285
01/22/2024, 4:22 PMchilly-king-10285
01/22/2024, 4:23 PMketo.yml
, you can specify different hosts and ports for the read and write APIs. Here is an example from the extracts: yaml serve: read: host: 0.0.0.0 port: 4466 write: host: 0.0.0.0 port: 4467
In this example, the read API is served on port 4466 and the write API on port 4467. This separation allows you to scale the read and write operations independently, which can be useful in scenarios where you have heavy read or write loads. For more information, you can refer to the [Ory Keto documentation](https://www.ory.sh/docs/keto/guides/migrating-legacy-policies).delightful-yak-60786
01/22/2024, 4:23 PMdelightful-yak-60786
01/22/2024, 4:24 PMchilly-king-10285
01/22/2024, 4:24 PMchilly-king-10285
01/22/2024, 4:24 PMbash docker run -d --name keto1 -p 4466:4466 -p 4467:4467 oryd/keto:latest docker run -d --name keto2 -p 4468:4466 -p 4469:4467 oryd/keto:latest
In this example, two instances of Ory Keto are running, effectively doubling the capacity for handling read and write operations. The first instance is serving on ports 4466 and 4467, and the second instance is serving on ports 4468 and 4469. Remember to ensure that all instances are using the same configuration and are connected to the same database. For more information, refer to the [Ory Keto documentation](https://www.ory.sh/docs/keto/guides/production) and the [Ory Scalability documentation](https://www.ory.sh/docs/self-hosted/operations/scalability).