On 2/22/2016 1:40 PM, Robert Brown wrote:
> As a pure C user, without wishing to use Java, what's my best approach
> for managing the SolrCloud environment?

The most responsive client you would be able to write would use the C
binding for zookeeper, to keep track of clusterstate like
CloudSolrClient does:

http://zookeeper.apache.org/doc/r3.4.8/zookeeperProgrammers.html#C+Binding

If you use this client, the C code would get information from Zookeeper
and use that to manage a list of active servers, collections, and other
information.

Using the HTTP endpoints (Collections API and the zookeeper HTTP
endpoint used by the admin UI) is an option, but then you would need to
regularly poll for status.  The zookeeper client is nearly instantly
notified of changes in zookeeper locations that it is watching, so it is
much more responsive.

Using the zookeeper client would very likely *not* be a trivial
project.  I believe you could use the CloudSolrClient java source as a
model.

Thanks,
Shawn

Reply via email to