Hi, Adam. I have tried using flexible instance to connect to a container engine which I created an internal load balancer. But this unfortunately does not work. (External load balancer does work.) Is there anyone could suggest? A detailed description of my troubleshooting process is posted here <https://stackoverflow.com/questions/45912802/how-do-i-make-app-engine-flexible-to-connect-to-container-engine-via-internal-ip> on stackoverflow.
On Saturday, 25 June 2016 05:08:46 UTC+8, Adam (Cloud Platform Support) wrote: > > You should be able to do this if you use a Flexible Environment instance, > and specify the same network name > <https://cloud.google.com/appengine/docs/flexible/java/configuring-your-app-with-app-yaml#network_settings> > > in the app.yaml that your Compute Engine instance running MySQL is on. It > won't work for Standard Environment instances as they are on separate, > physical networks. > > I say "should" as I haven't played around with this, and there's an > additional layer of network routing from the Docker container the app lives > in which also has its own local subnet. > > On Friday, June 24, 2016 at 10:43:29 AM UTC-4, Stephen Dunkley wrote: >> >> I have a Java Web application deployed on a Compute Engine instance >> connecting to MySql running on another Compute Engine instance in the same >> project. I am able to connect to MySql using the internal IP address >> (jdbc:mysql://10.240.0.4:3306/<db_name>). >> >> If I deploy the same web application to an App Engine instance within the >> same project, I can only connect to the MySql instance via the extermal IP >> address (jdbc:mysql://104.196.148.141:3306/<db_name). >> >> If I try to use the internal IP address, I get a Communication Link >> Failure, Permission Denied due to policy. >> >> My question is how do I open up communication between an App Engine >> instance and a Compute Engine instance via an internal IP address? The >> performance is about 5 x faster when using the internal IP address. >> >> Any help would be much appreciated >> > -- You received this message because you are subscribed to the Google Groups "Google App Engine" group. To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected]. Visit this group at https://groups.google.com/group/google-appengine. To view this discussion on the web visit https://groups.google.com/d/msgid/google-appengine/967b1e70-6e46-4422-8ba5-8d091417cacb%40googlegroups.com. For more options, visit https://groups.google.com/d/optout.
