question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Issue with v0.1.4

See original GitHub issue

Hello, We’re on v0.1.4 and just spun up a cruise control machine and see this warning all over the logs:

[2018-09-13 18:31:36,539] WARN Goal violation detector received exception (com.linkedin.kafka.cruisecontrol.detector.GoalViolationDetector) com.linkedin.kafka.cruisecontrol.exception.OptimizationFailureException: Insufficient healthy cluster capacity for resource:disk existing cluster utilization 2215449.25 allowed capacity 720000.0 at com.linkedin.kafka.cruisecontrol.analyzer.goals.CapacityGoal.initGoalState(CapacityGoal.java:173) at com.linkedin.kafka.cruisecontrol.analyzer.goals.AbstractGoal.optimize(AbstractGoal.java:81) at com.linkedin.kafka.cruisecontrol.detector.GoalViolationDetector.optimizeForGoal(GoalViolationDetector.java:172) at com.linkedin.kafka.cruisecontrol.detector.GoalViolationDetector.run(GoalViolationDetector.java:125) at java.util.concurrent.Executors$RunnableAdapter.call(Executors.java:511) at java.util.concurrent.FutureTask.runAndReset(FutureTask.java:308) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.access$301(ScheduledThreadPoolExecutor.java:180) at java.util.concurrent.ScheduledThreadPoolExecutor$ScheduledFutureTask.run(ScheduledThreadPoolExecutor.java:294) at java.util.concurrent.ThreadPoolExecutor.runWorker(ThreadPoolExecutor.java:1149) at java.util.concurrent.ThreadPoolExecutor$Worker.run(ThreadPoolExecutor.java:624) at java.lang.Thread.run(Thread.java:748)

In my capacity.json, the Disk capacity is set as “DISK”: “500000”, so not sure from where it is getting the value 720000.0.

Could you please suggest @becketqin or @efeg ?

Issue Analytics

  • State:closed
  • Created 5 years ago
  • Comments:11 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
efegcommented, Jan 14, 2021

@qz-fordham Unless users implement their own pluggable capacity resolver, the default capacity resolver retrieves the broker capacity information from a file. This file is expected to be populated by users, and it should reflect the real capacity of brokers. If users forget populating this file or use incorrect capacity information while doing so, CC would get unrealistic capacity information. Whereas bytes stored on Kafka logs comes from Kafka metrics; hence, they represent the actual / current data.

In this example, looks like the user indicated the following:

We noticed that the values f the disk capacities in ‘capacity.json’ were incorrect. We’re in the process of correcting that values in order to avoid this warning.

Hope it clarifies the root cause.

1reaction
jmarkancommented, Sep 26, 2018

Hi @efeg Thanks a lot for a detailed response. Here are my inputs on the things you asked to check:

  1. Yes ‘capacity.json’ is correctly specified in ‘config/cruisecontrol.properties’ and I put actual broker values in the same.
  2. We explicitly provide capacity of each broker in the cluster.
  3. Yes, CC is bounced everytime we change any values in capacity.json

We noticed that the values f the disk capacities in ‘capacity.json’ were incorrect. We’re in the process of correcting that values in order to avoid this warning.

Once we do that, I’ll confirm here if the issue is fixed or not.

Read more comments on GitHub >

github_iconTop Results From Across the Web

failed to run custom build command for `libudev-sys v0.1.4 ...
As per the error message, you are missing libudev . Installing the libudev-dev package should fix the issue. 9
Read more >
error: failed to run custom build command for `libudev-sys v0 ...
error: failed to run custom build command for `libudev-sys v0.1.4` ... However, I was not able to resolve the issue. I am using...
Read more >
Recode.Issue — Recode v0.1.4 - HexDocs
Settings View Source Recode.Issue (Recode v0.1.4). An Issue struct to track findings by the chechers. Link to this section Summary. Types. t(). Functions....
Read more >
Failed to run custom build command for libudev-sys v0.1.4 (#46)
I am trying to use the serialport-rs in on of my project and the project builds/run correctly on my Windows box however when...
Read more >
v0.1.4 · Milestones · HYCAR-Hydro / airGRdatassim · GitLab
v0.1.4. Issues 5; Merge requests 0; Participants 0; Labels 4. Unstarted Issues (open and unassigned). 5. Correct small issue in the vignette.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found