Is it possible to send a broadcast message to all instances behind the ELB?

橙三吉。 提交于 2019-12-07 02:32:27

问题


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 ?


回答1:


Not directly, no.

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.



来源:https://stackoverflow.com/questions/35151042/is-it-possible-to-send-a-broadcast-message-to-all-instances-behind-the-elb

标签
易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!