Giter VIP home page Giter VIP logo

Comments (6)

Felixoid avatar Felixoid commented on July 16, 2024

Hey hey.

To me it looks a little bit strange. Can you try the master to confirm if the issue is still there?

In any case, the easiest solution would be to increase clickhouse setting max_concurrent_queries, just try 150.

from graphite-clickhouse.

Felixoid avatar Felixoid commented on July 16, 2024

Hey Robert @spoofedpacket, are there any news regarding the issue?

from graphite-clickhouse.

spoofedpacket avatar spoofedpacket commented on July 16, 2024

@Felixoid Thanks for the response. I noticed from the logs that the majority of failed queries related to the graphite_index table so I decided to try something:

  • The graphite_index table has grown quite large over time. Metrics paths that have stopped updating werent being deleted from the table, so there was about a year's worth of stale data in there.
  • It was also partitioned with a YYYYMMDD partition key, which lead to it having over 400 partitions - I'm guessing that would have grown forever if left alone.
  • I dropped and recreated the table with a monthly partition key this time and let metrics feed in for a few days
  • There's also a cron in place now to purge metrics paths that haven't been updated in 2 weeks, based on this discussion: #83 (comment)
  • After this, I started sending queries again for several hours and the error did not reappear

I'm thinking this is something peculiar to my setup, due to the very large index table at the time. Happy to close the issue for now, if it reoccurs I'll try bumping the max_concurrent_queries to 150.

Thanks again!

from graphite-clickhouse.

Felixoid avatar Felixoid commented on July 16, 2024

There's actually another way to solve the issue. You can try to use the index-use-daily = false parameter, it can be more efficient for your setup.

To prevent the writing of daily data, there's a setting in carbon-clickhouse, but I'm unhappy with its name disable-daily-index = true, so it will be changed in the next config refactoring in a couple of weeks

from graphite-clickhouse.

spoofedpacket avatar spoofedpacket commented on July 16, 2024

Oh, I didn't know about that option in carbon-clickhouse. I'll give both a try, thanks for the tip!

from graphite-clickhouse.

Felixoid avatar Felixoid commented on July 16, 2024

I'm closing it, feel free to reopen it on new questions

from graphite-clickhouse.

Related Issues (20)

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.