GithubHelp home page GithubHelp logo

tango-controls-hdbpp / libhdbpp-cassandra Goto Github PK

View Code? Open in Web Editor NEW
1.0 4.0 1.0 8 MB

HDB++ library for Apache Cassandra backend. Moved to https://gitlab.com/tango-controls/hdbpp/libhdbpp-cassandra

Home Page: http://www.tango-controls.org/community/projects/hdbplus

C++ 98.18% CMake 1.82%
cassandra tango-controls hdbpp historical database tango-controls-hdbpp cassandra-backend

libhdbpp-cassandra's People

Contributors

bourtemb avatar

Stargazers

 avatar

Watchers

 avatar  avatar  avatar  avatar

Forkers

bourtemb

libhdbpp-cassandra's Issues

Consistency level

The library currently has hardcoded the write consistency level to LOCAL_QUORUM. This means that in a three node DC, with replication factor 2, if one node is down it can't write. This hurts reliability, for a gain in consistency.

What do you think about defaulting to LOCAL_ONE instead? As far as I can see, the only drawback would be that it takes a little longer for the cluster to "agree" on the written data. But since there are never any changes to existing points, only new points added, there can't be any real inconsistencies. In the worst case, new data may seem missing for a short time. The gain would be higher performance, and handling node failures in small clusters better.

Of course, ideally, the consistency level should be configurable anyway :)

Add an option to make optional the possibility to store diagnostics timestamps

In the current version, the library is storing the event receive time and event insert time into the database.
It would be useful to add an option to be able to enable this feature only on-demand.
It appears that these timestamps do not seem to be very useful since the EventSubscriber is already monitoring the min and max processing time. Disabling this feature could help saving quite a lot of space.

Use exceptions instead of returning error codes whenever possible

In the current version of HDB++ Event Subscriber and libhdb++cassandra library, a DB Storage error message is reported when there is a problem storing data into Cassandra, without more details about the error. Using exceptions in the library could help improving diagnostics for problems related to Cassandra storage.

Improve logging in libhdbpp-cassandra

It would be useful to be able to configure the logging level of the HDB++ Cassandra library (and Cassandra driver logging level) via LibConfiguration Tango property used by the HDBEventSubscriber and HDBConfigurationManager device servers.

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.