we're interested in using Zen as the discovery mechanism for our services.
Rather than having yet another discovery mechanism, we'd quite like to reuse
Zen. Don't suppose you have any docs on how to use Zen outside elastic
search do you?
Not, not really... . Also, I have not invested a lot in making it completely
separated from elasticsearch, it is a module, but it depends on other
modules like the transport and so on, and it is tied to the cluster state
publishing of elasticsearch (though that can be separated out).
we're interested in using Zen as the discovery mechanism for our services.
Rather than having yet another discovery mechanism, we'd quite like to reuse
Zen. Don't suppose you have any docs on how to use Zen outside elastic
search do you?
By the way, another question, do you plan to use Zen with a running ES
cluster, and just want to know the state of the cluster more intimately? If
so, this is simpler to do.
Not, not really... . Also, I have not invested a lot in making it
completely separated from elasticsearch, it is a module, but it depends on
other modules like the transport and so on, and it is tied to the cluster
state publishing of elasticsearch (though that can be separated out).
we're interested in using Zen as the discovery mechanism for our services.
Rather than having yet another discovery mechanism, we'd quite like to reuse
Zen. Don't suppose you have any docs on how to use Zen outside elastic
search do you?
That's very interesting. Basically we're using Gridgain as well as
Elasticsearch. Ideally we want to write a discovery SPI for Gridgain that
can use the same discovery instance as Elasticsearch so we are not
duplicating discovery chatter. If Zen emitted events, perhaps, then we could
just hook a custom GG discovery SPI into that.
Or we could just query Zen I suppose, but I like the idea of not doing
anything until something changes. Less Threads = good!
By the way, another question, do you plan to use Zen with a running ES
cluster, and just want to know the state of the cluster more intimately? If
so, this is simpler to do.
Not, not really... . Also, I have not invested a lot in making it
completely separated from elasticsearch, it is a module, but it depends on
other modules like the transport and so on, and it is tied to the cluster
state publishing of elasticsearch (though that can be separated out).
we're interested in using Zen as the discovery mechanism for our
services. Rather than having yet another discovery mechanism, we'd quite
like to reuse Zen. Don't suppose you have any docs on how to use Zen outside
Elasticsearch do you?
MyClusterEventListener implements ClusterStateEventListener {
public void clusterChanged(ClusterChangedEvent event) {
// work mainly with event.state().nodes(), and even.nodesDelta()
// NOTE: don't do anything time consuming on this thread! (like
IO calls or blocking)
}
}
You can add your listener after you build the node, but not start it, so you
will get all the events.
That's very interesting. Basically we're using Gridgain as well as
Elasticsearch. Ideally we want to write a discovery SPI for Gridgain that
can use the same discovery instance as Elasticsearch so we are not
duplicating discovery chatter. If Zen emitted events, perhaps, then we could
just hook a custom GG discovery SPI into that.
Or we could just query Zen I suppose, but I like the idea of not doing
anything until something changes. Less Threads = good!
By the way, another question, do you plan to use Zen with a running ES
cluster, and just want to know the state of the cluster more intimately? If
so, this is simpler to do.
Not, not really... . Also, I have not invested a lot in making it
completely separated from elasticsearch, it is a module, but it depends on
other modules like the transport and so on, and it is tied to the cluster
state publishing of elasticsearch (though that can be separated out).
we're interested in using Zen as the discovery mechanism for our
services. Rather than having yet another discovery mechanism, we'd quite
like to reuse Zen. Don't suppose you have any docs on how to use Zen outside
Elasticsearch do you?
MyClusterEventListener implements ClusterStateEventListener {
public void clusterChanged(ClusterChangedEvent event) {
// work mainly with event.state().nodes(), and even.nodesDelta()
// NOTE: don't do anything time consuming on this thread! (like
IO calls or blocking)
}
}
You can add your listener after you build the node, but not start it, so
you will get all the events.
That's very interesting. Basically we're using Gridgain as well as
Elasticsearch. Ideally we want to write a discovery SPI for Gridgain that
can use the same discovery instance as Elasticsearch so we are not
duplicating discovery chatter. If Zen emitted events, perhaps, then we could
just hook a custom GG discovery SPI into that.
Or we could just query Zen I suppose, but I like the idea of not doing
anything until something changes. Less Threads = good!
By the way, another question, do you plan to use Zen with a running ES
cluster, and just want to know the state of the cluster more intimately? If
so, this is simpler to do.
Not, not really... . Also, I have not invested a lot in making it
completely separated from elasticsearch, it is a module, but it depends on
other modules like the transport and so on, and it is tied to the cluster
state publishing of elasticsearch (though that can be separated out).
we're interested in using Zen as the discovery mechanism for our
services. Rather than having yet another discovery mechanism, we'd quite
like to reuse Zen. Don't suppose you have any docs on how to use Zen outside
Elasticsearch do you?
Apache, Apache Lucene, Apache Hadoop, Hadoop, HDFS and the yellow elephant
logo are trademarks of the
Apache Software Foundation
in the United States and/or other countries.