Open Nick-S-2018 opened 3 months ago
I fixed the issue then daemon restarts and lost state he got from the Kibana at https://github.com/manticoresoftware/manticoresearch/commit/152da2871dc041b028d0b2881d007eeb3063dc80 - now it saves the state into manticore.json
dashboard
node then loads it too.
However if daemon crashed the state still be lost and we need to implement new binlog operations to save kibana state into binlog then restore it on binlog replay after daemon crash. But that should be done after refactor https://github.com/manticoresoftware/manticoresearch/issues/879 finished.
I see that buddy handles most of the Kubana requests now and it might worth to remove that state management from the daemon and make buddy to handle these too. If we go this way there is no need to add new binlog operations. I could create the new branch there remove Kibana related state management from the daemon that allows these requests fall into buddy.
I confirm, it works fine now and restarting daemon does not cause any issues.
As for handling Kibana state management with Buddy - I think it's possible so we can discuss this idea.
But that should be done after refactor https://github.com/manticoresoftware/manticoresearch/issues/879 finished
That's done
I see that buddy handles most of the Kubana requests now and it might worth to remove that state management from the daemon and make buddy to handle these too. If we go this way there is no need to add new binlog operations. I could create the new branch there remove Kibana related state management from the daemon that allows these requests fall into buddy.
@tomatolog can you list all what the daemon does now in terms of the Kibana support, so we can evaluate the list and decide whether it makes sense to move it all to Buddy?
here is a full list of endpoints daemon handles for compart mode
_search
_msearch
_count
_doc
_create
_cat
_alias
_aliases
_rollup
_ingest
_ilm
_ccr
_mget
_template
_monitoring
_update
_refresh
_field_caps
now it saves the state into manticore.json
@Nick-S-2018 pls inspect the state to figure out what endpoints from the list can modify it.
Bug Description:
Daemon stops processing Kibana requests after it's restarted. To reproduce the bug, run Kibana with Manticore and this buddy-kibana version of Buddy: buddy.tar.gz buddy-core.tar.gz
Manticore Search Version:
Manticore 6.3.1 0e85b9d56@24052810 dev
Operating System Version:
Ununtu 22.04 LTS
Have you tried the latest development version?
Internal Checklist:
To be completed by the assignee. Check off tasks that have been completed or are not applicable.