Perda de serviço no método de implantação do GAE usando o Traffic Migrate?

1

Eu quero saber se há algum tempo de inatividade possível no método de implantações "silenciosas" do GAE. Estou usando

inbound_services:
- warmup

e implantar aplicativos com -no-promote --no-stop-previous-version flags antes de acessar o Google App Engine e migrar o tráfego da versão antiga para a nova.

Ainda existe a possibilidade de um cliente perceber que há uma implantação acontecendo?

    
por Vladimir 11.09.2016 / 08:05

1 resposta

1

Sim, ainda há espaço para uma implantação impactar a experiência do cliente. Você deve migrar o tráfego para a nova versão gradualmente, não de uma só vez.

De esta seção em Design para Escala :

Use traffic splitting when switching to a new default version

A high traffic application may get errors or higher latency when updating to a new version in the following scenarios:

  • Complete update of a new default version
  • Set the default version

Once the update is complete, App Engine will send requests to the new version. However, the new version may take some time to spin up enough instances to handle all traffic. During this period, requests can potentially sit on the pending queue and may time out.

Therefore, in order to minimize latency and errors, we recommend that customers use traffic splitting to move traffic gradually to a new version before making it the default.

An application may serve requests from both versions while you are moving traffic to the new version. In most cases, this will not cause any problems. However, if you have an incompatibility in the cached objects used by an application then you will need to ensure that users go to the same version of an application during their session. You will need to code this into your application logic.

    
por 15.12.2016 / 17:38