📄 readme
字号:
This demo demonstrates how to configure and deploy IceStorm in areplicated fashion using IceGrid replica groups.To run the demo, start the IceGrid service:$ icegridnode --Ice.Config=config.gridIn a separate window:$ icegridadmin --Ice.Config=config.grid -e \ "application add 'application.xml'"$ subscriberIn another window:$ publisherWhile the publisher continues to run, "tick" messages should bedisplayed in the subscriber window.The IceGrid application described in `application.xml' deploys threeIceStorm service instances. The three IceStorm service instances sharethe same instance name and their object adapters are configured to bemembers of IceGrid replica groups.When the subscriber starts, it retrieves all the topic manager objectreplicas. It then retrieves (or creates if it doesn't already exist)the topic named `time' on each topic manager. Finally, it subscribesto the `time' topic of each IceStorm service instance.The publisher just retrieves the publisher proxy of the `time' topicfrom a randomly selected IceStorm service instance. This publisherproxy is configured to use per-request load balancing so that eachinvocation is sent successively to each replica thanks to the roundrobin load balancing configured for the replica group (you can setIce.Trace.Location=1 to see the locator invocations).Note that the subscriptions are not persistent and the subscribermakes no attempt to re-establish dropped subscriptions. So if anIceStorm service instance is restarted, its subscriptions are lost andneed to be re-established by restarting the subscribers.Similarly, if you add an IceStorm service instance while somepublishers and subscribers are already running, you need to restartthe subscribers in order to get them to subscribe to this new IceStormservice instance.
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -