Aurora Serverless 'deadtime'

Nina

I am running a SQL RDS with AWS Serverless, and run into errors when I test APIs. At the beginning of the day I will get a 502 error, however this resolves after I retry 1-4 times. I believe this error is due to some 'deadtime' that occurs when serverless is trying to 'boot up' from 0 capacity units after a period of inactivity? This does not seem to occur when the server is idle at 1 cap unit.

The only solution I have been able to think of is setting the server capacity min to 1 but this seems to defeat the purpose of serverless + increases price.

Has anyone else run into this problem/successfully implemented a solution?

enharmonic

Before you run the API tests, you can start a paused serverless DB by sending it a scale command:

aws rds modify-current-db-cluster-capacity --db-cluster-identifier mydatabase --capacity 1

and then poll every few seconds to see if it is available:

aws rds describe-db-clusters --db-cluster-identifier mydatabase | jq -r '.DBClusters[].Status'

Once it is available you should be able to test your APIs without getting 502 errors.

この記事はインターネットから収集されたものであり、転載の際にはソースを示してください。

侵害の場合は、連絡してください[email protected]

編集
0

コメントを追加

0

関連記事

分類Dev

How to enable binlog on aurora serverless

分類Dev

Is there any mock(or local) service of aurora serverless Data Api?

分類Dev

Change Aurora Serverless engine version/family in AWS console

分類Dev

Can we use AWS Data Migration Service for replication from Aurora Serverless as source?

分類Dev

ストアドプロシージャをAWS RDS Aurora-Serverlessに追加するにはどうすればよいですか?

分類Dev

AWS RDS DataService(Aurora Serverless)を使用して複数のSELECT間で一貫した読み取りを実現する方法

分類Dev

Native Serverless vs Serverless Express

分類Dev

AWS Aurora - Unable to connect to aws aurora db

分類Dev

Serverless CMS On Lambda & DynamoDB

分類Dev

Serverless deploy - Function not found

分類Dev

Postgres Instance on RDS vs Aurora

分類Dev

AWS Serverless contact form request

分類Dev

Serverless architecture - Azure functions @edge

分類Dev

Offline DynamoDB + Serverless + Lambda ResourceNotFoundException

分類Dev

Serverless framework TypeError: e is not a function

分類Dev

Serverless framework TypeError: e is not a function

分類Dev

AWS Amplify&Serverless-Stack

分類Dev

Is there a hostname moniker for URI with serverless bindings?

分類Dev

Amazon Aurora PostgreSQL: clone capability: down sides?

分類Dev

RDS Aurora (MySQL) performing EXTREMELY poorly

分類Dev

AWS Codebuild Golang Lambda using Serverless Framework

分類Dev

Use path params in serverless framework 1.0

分類Dev

Serverless framework won't start with dynamodb local

分類Dev

AWS - API keys available on the Serverless Offline framework?

分類Dev

How to throw errors from inside a serverless lambda

分類Dev

AWS Lambda filesystem path for a Serverless Framework Function?

分類Dev

Use AppSync and Amazon RDS with serverless-graphql

分類Dev

Create a SPA static serverless application with F#

分類Dev

Maximum policy size error from serverless framework

Related 関連記事

  1. 1

    How to enable binlog on aurora serverless

  2. 2

    Is there any mock(or local) service of aurora serverless Data Api?

  3. 3

    Change Aurora Serverless engine version/family in AWS console

  4. 4

    Can we use AWS Data Migration Service for replication from Aurora Serverless as source?

  5. 5

    ストアドプロシージャをAWS RDS Aurora-Serverlessに追加するにはどうすればよいですか?

  6. 6

    AWS RDS DataService(Aurora Serverless)を使用して複数のSELECT間で一貫した読み取りを実現する方法

  7. 7

    Native Serverless vs Serverless Express

  8. 8

    AWS Aurora - Unable to connect to aws aurora db

  9. 9

    Serverless CMS On Lambda & DynamoDB

  10. 10

    Serverless deploy - Function not found

  11. 11

    Postgres Instance on RDS vs Aurora

  12. 12

    AWS Serverless contact form request

  13. 13

    Serverless architecture - Azure functions @edge

  14. 14

    Offline DynamoDB + Serverless + Lambda ResourceNotFoundException

  15. 15

    Serverless framework TypeError: e is not a function

  16. 16

    Serverless framework TypeError: e is not a function

  17. 17

    AWS Amplify&Serverless-Stack

  18. 18

    Is there a hostname moniker for URI with serverless bindings?

  19. 19

    Amazon Aurora PostgreSQL: clone capability: down sides?

  20. 20

    RDS Aurora (MySQL) performing EXTREMELY poorly

  21. 21

    AWS Codebuild Golang Lambda using Serverless Framework

  22. 22

    Use path params in serverless framework 1.0

  23. 23

    Serverless framework won't start with dynamodb local

  24. 24

    AWS - API keys available on the Serverless Offline framework?

  25. 25

    How to throw errors from inside a serverless lambda

  26. 26

    AWS Lambda filesystem path for a Serverless Framework Function?

  27. 27

    Use AppSync and Amazon RDS with serverless-graphql

  28. 28

    Create a SPA static serverless application with F#

  29. 29

    Maximum policy size error from serverless framework

ホットタグ

アーカイブ