Skip to content

andrea-zanetti/ignite-consul

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

1 Commit
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

ignite-consul

A simple Consul based cluster discovery for Apache Ingite

####Motivation:

Hashicorp Consul is becoming an increaingly used KV store and service discovery, being comparatevely simpler than Apache ZooKeeper. Unfortunately Consul support is missing from the standar Ignite distribution as a mean of cluster discovery.

####How does it work:

This a very simple cluster discovery method that uses OrbitzWorldwide consul-client as a mean to register node on a Consul cluster and thus provide discovery

####How to use it:

Right now the simpler way to incorporate this code into your Apache Ignite artifact is to clone Ignite project, clone this repository inside the modules subdirectory and modify Ignite pom.xml adding this as a module.

I'll provide some easier way of deployment ASAP.

A sample Ignite configuration for the discovery module is provided in this project but basically all you need is to add (port is optional)

    <property name="discoverySpi">
         <bean class="org.apache.ignite.spi.discovery.tcp.TcpDiscoverySpi">
			<property name="ipFinder">
				<bean class="org.apache.ignite.spi.discovery.tcp.ipfinder.consul.TcpDiscoveryConsulIpFinder">
					<property name="consulAddres" value="http://consul"/>
					<property name="consulPort" value="8500"/>
				</bean>
			</property>
		</bean>
    </property>

About

Consul based cluster discovery for Apache Ignite

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages