tumblr / collins

groovy kind of love
tumblr.github.com/collins
Apache License 2.0
571 stars 99 forks source link

Assets created by one instance can't be seen by another instance on same MySQL DB #585

Closed dukeofurl closed 6 years ago

dukeofurl commented 6 years ago

Hey guys, we're setting up Collins for CMDB use and loving it so far, but hit a snag when trying to create an HA cluster. Throughout exhaustive testing, it seems that Collins instances can only see assets they have created themselves. More info:

Hopefully we're just missing some configuration option, but if you need any thing else to track down this bug(?), I'm here to help.

Thanks!

dukeofurl commented 6 years ago

Through deeper inspection of all open file handles in the containers running Collins, we found lucene indexes in use. Solr stores lucene index files locally, and in order to implement either mulicollins or clustered collins instances, an external Solr instance has to be set up, but this is not mentioned in the documentation. Problem has been resolved, but documentation of this requirement would have saved a few days work.

defect commented 6 years ago

Hi, sorry for the very slow response.

Yes, in order to use HA collins you need a shared Solr instance. There is also some hazelcast functionality that needs to be configured for cache coherency between collins instances.

In all honesty, the area of HA collins hasn't been very well used (we use a hot/standby configuration) and put through the tests of productionizing (as far as I know), which is probably why it isn't very well documented.