You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Aug 2, 2024. It is now read-only.
Issue: when scaling is changed from automatic-scaling to basic-scaling, the instance port number is random.
This is the pom.xml configuration: <plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>appengine-maven-plugin</artifactId> <version>2.4.0</version> <configuration> <devserver.port>8889</devserver.port> </configuration> </plugin>
(1) when automatic-scaling is used, the following is the instance running:
Module instance <module_name> is running at http://localhost:8889/
automatic-scaling configuration works fine for us in the dev environment
(2) when basic-scaling is used (1), the following are the instances running:
Module instance <module_name> is running at http://localhost:8889/
Module instance <module_name> instance 0 is running at http://localhost:56064/
In this basic-scaling setup, any requests sent to http://localhost:8889/ fails, but the requests sent to http://localhost:56064/ works fine as expected. But the problem is instance 0 port number is random. We need to ensure the port number assigned to the instance is predetermined, otherwise, we can not run the automation tools in the local dev environment.
So, I would like to know whether (1) this is the expected behavior of the current implementation, (2) there is a workaround to get the port numbers fixed?
System info:
Cloud SDK: 313
Runtime: Java 8
Appengine: Standard
Thanks
The text was updated successfully, but these errors were encountered:
So to answer your questions, (1) yes this is the expected behavior, (2) there's no way to explicitly set the port numbers right now
Some more information is available in this issue: #330
Closing now as I don't think we do much else here. Please re-open if you need more information.
I think your automation tools will need to either use the api directly or parse the information.
Issue: when scaling is changed from automatic-scaling to basic-scaling, the instance port number is random.
This is the pom.xml configuration:
<plugin> <groupId>com.google.cloud.tools</groupId> <artifactId>appengine-maven-plugin</artifactId> <version>2.4.0</version> <configuration> <devserver.port>8889</devserver.port> </configuration> </plugin>
(1) when automatic-scaling is used, the following is the instance running:
Module instance <module_name> is running at http://localhost:8889/
automatic-scaling configuration works fine for us in the dev environment
(2) when basic-scaling is used (1), the following are the instances running:
Module instance <module_name> is running at http://localhost:8889/
Module instance <module_name> instance 0 is running at http://localhost:56064/
In this basic-scaling setup, any requests sent to http://localhost:8889/ fails, but the requests sent to http://localhost:56064/ works fine as expected. But the problem is instance 0 port number is random. We need to ensure the port number assigned to the instance is predetermined, otherwise, we can not run the automation tools in the local dev environment.
So, I would like to know whether (1) this is the expected behavior of the current implementation, (2) there is a workaround to get the port numbers fixed?
System info:
Cloud SDK: 313
Runtime: Java 8
Appengine: Standard
Thanks
The text was updated successfully, but these errors were encountered: