How do I cluster ServiceMix?

前端 未结 3 1912
春和景丽
春和景丽 2020-12-31 16:04

I am looking for some initial pointers on how to cluster a ServiceMix solution. Basically what I need is:

  • having 2 (or more) ServiceMix instances serving my ro
相关标签:
3条回答
  • 2020-12-31 16:21

    take a look at Apache Cellar as its targeted at these use cases...

    http://karaf.apache.org/index/subprojects/cellar.html

    0 讨论(0)
  • 2020-12-31 16:26

    Fabric8 (http://fabric8.io/) can do Karaf/ServiceMix clustering and much more out of the box. It also have additional clustered Camel components such as the master and fabric endpoints

    • http://fabric8.io/gitbook/camelEndpointMaster.html
    • http://fabric8.io/gitbook/camelEndpointFabric.html

    There is a clustered Camel example, that demonstrates that

    • https://github.com/fabric8io/fabric8/tree/master/fabric/fabric8-karaf/src/main/resources/distro/fabric/import/fabric/profiles/example/camel/cluster

    The principle is illustrated in the image below:

    enter image description here

    0 讨论(0)
  • 2020-12-31 16:27

    From what it sounds like, all you need is two ServiceMix instances running side by side with no failover specifically configured. Failover is there if you want a cluster of instances, only one of which services requests.

    Ignore the JBI stuff - it's legacy. Distributed OSGi is a red herring in the use case that you have described.

    As boday suggests, Cellar is used to manage the installation of your bundles uniformly across a logical group of Karaf/ServiceMix instances, so you can manage them from one location as opposed to installing new versions on each instance by hand.

    0 讨论(0)
提交回复
热议问题