简体   繁体   English

Bluemix中的容器警报

[英]Alerts for containers in bluemix

This Monday 24th, I had a problem with a container and Secure Gateway Client in Bluemix. 这个星期一24日,我在Bluemix中使用容器和Secure Gateway Client遇到了问题。 The container was stopped and SecureGatewayClient was inhibited (it answered error 500 but it showed Started) 容器已停止并且SecureGatewayClient被禁止(它回答了错误500,但显示为Started)。

Is it possible to send an alert for a Container of Bluemix, for example, the alert will send an email or call an API if the container will stop? 是否可以发送有关Bluemix容器的警报,例如,如果容器停止,警报将发送电子邮件或调用API?

In the case of SecureGatewayClient, I think to monitor the services through the SecureGateway, every 5 minutes I will test the services, but I can accept more ideas... 对于SecureGatewayClient,我想通过SecureGateway监视服务,每隔5分钟我将测试一次服务,但是我可以接受更多的想法...

I can't really speak to potential container issues, but I can provide some details on how the Secure Gateway Client works. 我无法真正谈到潜在的容器问题,但是可以提供一些有关Secure Gateway客户端如何工作的详细信息。 The Secure Gateway Client runs as a clustered process where the actual connective pieces are worker processes beneath a single management process. Secure Gateway Client作为群集过程运行,其中实际的连接部分是单个管理过程下的工作进程。 Because of this, if the worker process goes down, the container is essentially none the wiser as long as the management process is still running, as the management process is the entry point for the container. 因此,如果工作进程出现故障,则只要管理进程仍在运行,容器就根本不明智,因为管理进程是容器的入口点。

The Secure Gateway Client supports a --service option that will cause the management process to monitor the worker count. Secure Gateway客户端支持--service选项,该选项将使管理过程监视工作人员计数。 Should the worker count reach 0, the manager will create new workers with the credentials passed on startup. 如果工作人员计数达到0,则经理将使用启动时传递的凭据来创建新工作人员。

For example, starting with: 例如,从以下开始:

ibmcom/secure-gateway-client myGatewayID -t myGatewaySecurityToken --service

would spawn a worker that will attempt to connect to myGatewayID . 会生成一个尝试连接到myGatewayID Should that worker process terminate for some reason, the management process would create a new worker within 60s as a replacement. 如果该工作进程由于某种原因终止,则管理进程将在60秒钟内创建一个新工作程序作为替换。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM