DynamoDB的编程健康检查? [英] Programmatic Health Check for DynamoDB?

查看:83
本文介绍了DynamoDB的编程健康检查?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

作为部署到AWS的Web应用程序的运行状况检查终结点的一部分,我希望提供一项检查以确保DynamoDB功能正常且可用.我知道DynamoDB不会经常宕机,但是一旦这样做,它将使该应用程序无法使用.因此,我想知道这就是我进行健康检查的原因.

As part of the health check endpoint for my web application deployed to AWS, I'd like to include a check to ensure that DynamoDB is functional and available. I know that DynamoDB doesn't go down often, but when it does it will render this application unusable. As such, I'd like to know that's the reason as part of my health check.

是否有一个可用来验证DynamoDB运行状况的程序化终结点(或Java AWS SDK的一部分)?那么其他AWS服务(例如SQS或S3)又如何呢?有什么相似之处吗?

Is there a programmatic endpoint (or part of the Java AWS SDK) that I can leverage to verify the health of DynamoDB? What about other AWS services, such as SQS or S3? Anything similar?

推荐答案

应进行健康检查

  1. 确保数据库已启动

  1. Ensure DB is up

确保可以对其执行适当的操作.(应该没有权限问题.)

Ensure you can do appropriate operations on it. (there should be no permission issues.)

要确保同时存在上述两项,就可以对一个不存在的项目进行查询,如果您得到404(而不是403、500),则表示成功.

To ensure both the above are there you can do a query, on even a non existing item, if you get 404(not 403, 500), it should mean successful.

这篇关于DynamoDB的编程健康检查?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆