We have a Spring 4 application running of GKE and JPA for ORM. Our minimum Replica set is 4. We want to connect to Cloud SQL from these replica pods.
1. If we go by the Cloud SQL Proxy approach, the cloud sql proxy would be a sidecar container in each of the pods. Are there any resource consumption and and performance results for the cloud sql proxy? How much resources does a cloud sql proxy consume for a given rate of requests. We would obviously do this test, but are there any results from Google?
2. What is better way of communicating with Cloud SQL when there are multiple gke replica pods connecting to the cloud sql db? Cloud SQL Proxy or Private IP?