-
Notifications
You must be signed in to change notification settings - Fork 47
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
monasca-persister database #505
Comments
You can achieve HA with InfluxDB using InfluxDB-relay. Another, even better option is to deploy several InfluxDB instances and configure persisters in different Kafka consumer groups. Measurement will be duplicated for every consumer group. Cassandra support is fully functional. At SUSE we offer optionally both InfluxDB and Cassandra. |
Take into account I never used Monasca with Cassandra myself. Sorry, I can't give you better answer. |
@witekest @matrixik ok.very thanks.at present,we use influxdb-relay as ha component and backend has three influxdb pod.but we find it is not a reliable solution.if we killed a pod ,monasca persister may access a bad one (at present ,influxdb-relay can not closed a bad service,it forward request to backend at random ),and influxdb-relay return 204 code.then monasca persister crashed.on the other hand,if a influxdb pod crashed a certain time. then it start and lost many metrics. a user get metrics from monasca api. users may get different metrics at different visit time. now,we plan to use cassandra as storage.and dockfile has finished.but do not know the cql of cassandra to create tables that monasca persister used.can you help me,tell us detail cql of tables creation.very thanks. |
at present ,we write a cql according to monasca persister conf.py.but has some mistakes. create schema monasca with replication = { 'class' : 'SimpleStrategy', 'replication_factor' : 3 }; create table monasca.alarm_state_history ( primary key ((tenant_id, alarm_id, old_state, new_state, sub_alarms,reason , reason_data), metric) create table monasca.measurements ( |
You can find the schema in DevStack plugin. |
Yes, InfluxDB instance which was offline/crashed for a longer time should be removed from the query pool until recovered. If you use Kafka consumer groups for measurements replication you won't loose any measurements! They will be cached in Kafka until the messages can be consumed again. |
hello, i find monasca-psersister has finished cassandra databases as storage's work.is monasca can use this feature?at present,influxdb opensource version has no ha and cluster featuren.so it is no suitable at production environment.
The text was updated successfully, but these errors were encountered: