You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This PR adds internal stream "meta" to be used
in distributed mode only. The query node creates this
internal stream. It fetches cluster metrics
from all ingestion nodes, adds the metrics data to an
event and ingests the event to this internal stream.
This data will be used by console in cluster page to
show the stats per ingestor.
let app = self.start(prometheus,CONFIG.parseable.openid.clone());
198
+
199
+
tokio::pin!(app);
200
+
loop{
201
+
tokio::select! {
202
+
e = &mut app => {
203
+
// actix server finished .. stop other threads and stop the server
204
+
remote_sync_inbox.send(()).unwrap_or(());
205
+
localsync_inbox.send(()).unwrap_or(());
206
+
localsync_handler.join().unwrap_or(());
207
+
remote_sync_handler.join().unwrap_or(());
208
+
return e
209
+
},
210
+
_ = &mut localsync_outbox => {
211
+
// crash the server if localsync fails for any reason
212
+
// panic!("Local Sync thread died. Server will fail now!")
213
+
returnErr(anyhow::Error::msg("Failed to sync local data to drive. Please restart the Parseable server.\n\nJoin us on Parseable Slack if the issue persists after restart : https://launchpass.com/parseable"))
214
+
},
215
+
_ = &mut remote_sync_outbox => {
216
+
// remote_sync failed, this is recoverable by just starting remote_sync thread again
0 commit comments