是否可以向ELB后面的所有实例发送广播消息? [英] Is it possible to send a broadcast message to all instances behind the ELB?

查看:90
本文介绍了是否可以向ELB后面的所有实例发送广播消息?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想将更新发送到ELB后面的所有实例.我更喜欢发送更新,而不是从实例端进行轮询.是否可以向ELB发送将广播到所有实例的消息?

I want to send update to all instances behind the ELB. I prefer to send update instead of polling from instance side. Is it possible to send a message to ELB that will be broadcasted to all instances ?

推荐答案

不直接,不.

一种编程解决方法是,查询ELB API以发现运行状况良好的实例的身份,然后通过EC2 API来发现那些实例的IP地址,然后将消息直接发送给每个实例.

A programmatic workaround is to query the ELB API to discover the identities of the healthy instances then the EC2 API to discover the IP addresses of those instances, and then send the message to each instance, directly.

这篇关于是否可以向ELB后面的所有实例发送广播消息?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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