dadosfera / Bugsfera

Other
1 stars 0 forks source link

[RestAPI] Out of memory error #107

Open rafaelsantanaep opened 1 year ago

rafaelsantanaep commented 1 year ago

Mandatory informations:

Are there any customers directly impacted by this bug? Which ones?

Bug Category

Describe the bug

The ECS task is terminated because the allocated amount is exceeded. This error occurred with the tap-rest-api-msdk, which currently have 24g allocated. To solve it temporally, we should increase the amount of memory allocated for the singer connector and, later on, decrease the amount of memory to keep costs controlled.

To increase the amount of memory, we have to change this file:

image

Other informations:

What environment of software are you using?

When the bug happened: 2023-03-16

rafaelsantanaep commented 1 year ago

@cicerojmm @oliveira-devops Refatorei o CICD do singer-connector para conseguirmos customizar a quantidade alocada de memória do ECS por plugin em vez de por connector como estava hoje. Joguei a quantidade alocada pro rest-api-msdk lá pra cima e vou pedir pro @vitorddf testar em conjunto com a ativy para ver se resolveu.

Posteriormente, é bom descermos a quantidade de memória alocada pra diminuirmos nossos custos.

Houveram outras PRs, mas a que houve mais mudanças foi essa aqui: https://github.com/dadosfera/singer-connector/pull/272/files

Também aproveitei para refatorar o CI com o intuito de ficar mais clean e utilizar a feature de environments do github.