-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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
Add max_connetions and max_connections_per_instance to backend service #1353
Conversation
Looks good! We'll just need a test, and an update to the docs, and I'll be happy to merge it. :) |
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 can write a test in google/resource_compute_backend_service_test.go
and the docs in website/docs/r/compute_backend_service.html.markdown
.
Hi, I added max_connections as well wrote two tests and adapter the documentation. Please let me know if there is anything missing. |
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.
Those are some really excellent detailed tests. :) I'm going to run them in our CI then merge.
Thanks. Let me know if the tests work. |
They do a proper cleanup, yep. In any event:
|
My bad. I changed the http_health check to a tcp health check and forgot to adapt its usages. |
Thanks! Should be safe to run those tests locally for development cycle speed - the cleanup code is supposed to be robust. :) |
I tried to run the tests. But I couldn't fetch the image: I guess this is due to my current setup where my repository sits behind a proxy. |
Rerunning the tests. |
I got the tests to work. I will upload another commit that will fix the test errors ;) |
TF_ACC=1 go test -run TestAccComputeBackendService_withMaxConnections github.com/terraform-providers/terraform-provider-google/google -v === RUN TestAccComputeBackendService_withMaxConnections |
All the tests pass on my end too. Merging. |
Thanks for reviewing and merging this so fast! |
I'm going to lock this issue because it has been closed for 30 days ⏳. This helps our maintainers find and focus on the active issues. If you feel this issue should be reopened, we encourage creating a new issue linking back to this one for added context. If you feel I made an error 🤖 🙉 , please reach out to my human friends 👉 [email protected]. Thanks! |
Hi,
could you check this pull request?
It seems max_connections_per_instance is missing for the backend service (max_connections likewise).
This makes it impossible to use external tcp load balancers and internal load balancers that point to the same instance group.