-
Notifications
You must be signed in to change notification settings - Fork 111
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. Weβll occasionally send you account related emails.
Already on GitHub? Sign in to your account
esgateway pggateway: Changes to parsed nodes and resolvers to PG gateway HAProxy And Make resolvers configurable #4486
Conversation
Signed-off-by: Kallol Roy <karoy@progress.com>
π· Deploy preview for chef-automate processing. π¨ Explore the source changes: 56aba38 π Inspect the deploy logs: https://app.netlify.com/sites/chef-automate/deploys/5fe1e2f7b36229000702e330 |
Signed-off-by: Kallol Roy <karoy@progress.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
Co-authored-by: Steven Danna <steve@chef.io>
Signed-off-by: Kallol Roy <karoy@progress.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
Signed-off-by: Kallol Roy <karoy@progress.com>
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You might be able to modify the config of some of the HA tests to get some integration coverage here
Signed-off-by: Kallol Roy <karoy@progress.com>
Thanks for adding the "how to test..." and "definition of done" sections. That gets the reader much closer to understanding what you are trying to achieve. However, for someone unfamiliar with the context (like me π ), that seems to only show that the entered config lines end up in the correct location. But how does that connect to what your "description" says? |
I agree. I should have added more information there. The resolvers would make sure that the PG/ES node IPs can be resolved dynamically and any change in the cluster would not fail the application. In the current scenario when the node IPs are provided and if cluster node goes down, the gateway would keep on trying with the IP addresses. This encourages users to provide hostnames rather than the IPs. |
Found an issue while doing acceptance testing for this. The issue can be summarised as below: While setting up external postgres. In case if the config does not have
Automate-dex expects the connection to be SSL enabled and expects the root_cert path. |
Signed-off-by: Kallol Roy karoy@progress.com
π© Description: What code changed, and why?
Automate when configured with multiple postgres nodes (master + followers) fails to resolve the added/removed follower from the cluster beyond the ones mentioned in the config.
The aim is to make sure that HAProxy should be able to resolve the nodes in a periodic manner based on the resolv.conf.
βοΈ Related Resources
This involves changes in:
resolvers
andserver-template
resolvers
IP addressesThe resolvers can be added and passed by adding the following configurations:
In case of ESgateway
π Definition of Done
Setting the configurations should make following changes in the deployed environment:
esgateway
section should make a change in the/hab/svc/automate-es-gateway/config/nginx.conf
and the resolvers should be added. Example:pg_gateway
section should make a change in the/hab/svc/automate-pg-gateway/config/haproxy.conf
and the resolvers should be added. Example:π How to Build and Test the Change
start_all_services
/hab/svc/automate-es-gateway/config/nginx.conf
and/hab/svc/automate-pg-gateway/config/haproxy.conf
β Checklist
π· Screenshots, if applicable