How to have a common ocelot.json
configuration on DFS?
#2105
-
Expected Behavior / New FeatureWhen the gateway is installed in multiple servers with distributed file system (DFS) and in front of those servers a load balancer exists that manages the traffic, the ocelot.json needs write permission in each server and when updating it with the admin API it ends up having different files in each server.
Message from repo maintainer on November 30, 2023Hi lady! I hope, this question-issue can be converted to true issue which is ready for development, if we will have active contributor. |
Beta Was this translation helpful? Give feedback.
Replies: 4 comments
-
@stamatiagk hey, someone needs to implement IFileConfigurationRepository for some kind of shared storage e.g. database or you can store your configuration in consul. You can see how that has been done here. I would suggest just implementing it for yourself and see if you can get it working. Then we get can get a PR afterwards. |
Beta Was this translation helpful? Give feedback.
-
Hi @TomPallister, together with @stamatiagk we implemented an
What do you think ? Any recommendation? I thought I should ask you before I create a PR. |
Beta Was this translation helpful? Give feedback.
-
Hi Panagiotis!
If you'll reply then I'll share you details on dev plan... |
Beta Was this translation helpful? Give feedback.
-
You need to build one Docker image with Ocelot config inside and create Docker containers by Kubernetes or other container tools. 2nd designIf you want to use DFS for all Ocelot instances (ignoring current Ocelot instance file system) then Ocelot doesn't have such functionality to reuse DFS interfaces. It must be developed. |
Beta Was this translation helpful? Give feedback.
@stamatiagk
You need to build one Docker image with Ocelot config inside and create Docker containers by Kubernetes or other container tools.
2nd design
If you want to use DFS for all Ocelot instances (ignoring current Ocelot instance file system) then Ocelot doesn't have such functionality to reuse DFS interfaces. It must be developed.