Skip to content
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

[cloud-sql-proxy] Running the Cloud SQL Proxy as a persistent service #1136

Open
pietroventurini opened this issue Feb 5, 2024 · 0 comments
Assignees

Comments

@pietroventurini
Copy link

Hello :) , I needed to run the Cloud SQL Proxy as a persistent service as recommended by the Cloud SQL documentation for production environments.

I couldn't find an example of it, so I would like to propose to update the cloud-sql-proxy.sh script, so to add automatic restart capabilities to the proxy by including into the systemd service unit configuration (line 312) something like:

[Service]
# ...

Restart=on-failure
RestartSec=5

This would be similar to what has been done in other scripts, for instance in solr.sh

  1. Do you think it might be convenient for users to have such capability provided in the sample?
  2. Do you see any downsides to such proposal?

Thank you!

@cjac cjac self-assigned this Jul 28, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants