Hello Jaromír,

Based on your use case, the Google App Engine seems to be the product 
you're looking for. Here 
<https://cloud.google.com/appengine/docs/the-appengine-environments> you 
can find a comparison of the two GAE environments: Standard and Flexible, 
however, I think that the GAE standard was an appropriate choice for you.

As for the restarts, according to the GAE documentation 
<https://cloud.google.com/appengine/docs/standard/java11/how-instances-are-managed#startup>,
 
when the instance is created and started:
   * "Manual scaling instances are restarted immediately, while basic 
scaling instances are restarted only when needed for serving traffic."*

Overall, App Engine tries to keep manual scaling instances running 
indefinitely. However, please keep in mind that it doesn't guarantee any 
uptime for now. Nevertheless, if by any chance you notice any unusual 
behavior in you instance, I would recommend you to open a ticket with the 
Google Cloud Platform technical support <https://cloud.google.com/support/>, 
as that will allow us to inspect your instance more thoroughly.

On Tuesday, January 19, 2021 at 9:23:29 PM UTC+1 [email protected] wrote:

> Hi Elliott,
> I appreciate you answering me, thanks for links I started to reading it 
> from begining. I have also deployed my springboot application to Google App 
> Engine Standard . It works but I have some problems with that.
>
> My use case:
>  - I would like use "platform-as-a-service", where I deploy my springboot 
> app  (jar or war) and let application running for long time. 
>  - My app is connected to google cloud SQL (mysql8).
>  - I would like use advantage of simple maintain and scaling 
> (automatically create more instances if it will be necessary).
>  - I would like use a similar product like Elasticbeanstalk on AWS, (using 
> Apache Tomcat 9.x  , springboot is familiar with it) but from Google Cloud.
>  - My application has cca 100MB (with libraries).
>  - In first phase I expect just only hundreds or thousands requests per 
> whole day.
>  - I would like use CI/CD from gitlab.
>
> Now, after I deployed to Google App Engine Standard (runtime: java11, 
> instance_class: B2, manual_scaling:  instances: 1 ) I have this problem:
> - During or after the app start I noticed that server is several times 
> restarted. After cca 5 minutes it is stable and working normally. I am not 
> sure if Google App Engine Standard is suitable solution for me...
>
> Thanks for answer and have a nice day.
> Jaromír
>
>
> Dne úterý 19. ledna 2021 v 16:05:35 UTC+1 uživatel Elliott (Cloud Platform 
> Support) napsal:
>
>> Hello Jaromir,
>>
>> I understand that you would like some advice on running your Spring Boot 
>> application on Google Cloud Platform. There are a few ways you can do this. 
>> For example, you may use Google App Engine Standard or Google Google 
>> Kubernetes GKE, both having tutorials here 
>> <https://developers.google.com/learn/pathways/springboot-google-cloud>.
>>
>> To offer the best advice, what are your concerns specifically? Maybe 
>> after using the information from the links, you would be more sure.
>>
>> The community would recommend an environment but if you provide your use 
>> case, it will be easier.
>>
>> For example, for Google App Engine Standard, applications can be easy to 
>> create. Since this is managed, the app may be simple to maintain and scale 
>> depending on traffic and data. You don’t need to maintain a server. In 
>> theory, you upload your app and that’s it.
>>
>>
>> On Monday, January 18, 2021 at 2:35:57 PM UTC-5 [email protected] wrote:
>>
>>>
>>> Hi,
>>> I have a Spring boot application that produce small public REST API. Is 
>>> written in Java11 and I would like to run it in Apache Tomcat 9.x .
>>>
>>>
>>> Could you recommend me , which environment should I use on GCP? 
>>>
>>> I started with App Engine (standard environment), but I am not sure if 
>>> it is suitable form java + spring application.
>>>
>>> I would like to run my app in 1 instance, later (if  will be necessary ) 
>>> to scale in more instance.
>>>
>>> Thanks for advice.
>>> Jaromir
>>>
>>>

-- 
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 view this discussion on the web visit 
https://groups.google.com/d/msgid/google-appengine/992b9f96-b585-4163-904b-1b56da3c8195n%40googlegroups.com.
  • [google-ap... behavin behavin
    • [goog... 'Elliott (Cloud Platform Support)' via Google App Engine
      • [... behavin behavin
        • ... 'Denis T (Google Cloud Platform Support)' via Google App Engine
        • ... behavin behavin
          • ... 'Saigeetha Sundara' via Google App Engine

Reply via email to