Comments (5)
NSQ performance will degrade if we delay ACK'ing messages
@woodsaj where do you get this from?
as a reminder for posterity: the problem that drove #11 was that raintank-metric was losing metrics due to crashes and we couldn't simply delay acks to rabbit until after safe delivery. the primary reason we switched from rabbitmq to nsq is that nsq handles late ACK's well, so that we could use its diskqueue for metrics messages while we try to store batches of metrics into kairos, instead of being incentivized to prematurely (unsafely) ack in raintank-metric.
the story here, although we have more individual, smaller messages, is basically the same though.
just to be sure i asked again on the nsq-users email list:
https://groups.google.com/forum/#!topic/nsq-users/8TpXCYGcEFI
and they confirm there should be no issues.
from metrictank.
I am certainly in no position to argue with the NSQ developers.
my assumption was based on the fact that nsq has a bounded memory footprint. Delaying acks will cause (depending on memory consumption) messages to be moved out of RAM, and i would assume acking them would require loading them back into RAM. This could lead to high IO as messages are read from the diskqueue, as the read pattern would be random rather then sequential.
from metrictank.
looking at the code, we've implemented bulkindexing for probe events, but it acks when it succeeds to add to the bulkindexing queue. so if nsq_probe_events_to_es crashes or restarted, we may see dataloss. especially if ES is down, even if temporarily.
from metrictank.
@Dieterbe for events, nsq messages are only acked after we get confirmation from ES that the points have been written.
What makes you think otherwise?
from metrictank.
looks like i was wrong. i didn't see the inprogresswritequeue stuff. i think we can close this
from metrictank.
Related Issues (20)
- High priority / backlog on metric flush HOT 5
- MT-Whisper-Importer-Writer can get stuck on invalid requests HOT 1
- request: tag-native divide and asPercent functions HOT 9
- Panic and crash in chunk cache
- Graphite API responds with 413 when response is too large not request HOT 5
- Add more logging with traceID HOT 2
- Ability to "revive" archived series HOT 15
- Support "archive" in tags/delByQuery HOT 2
- Stored 'lastupdate' being approximate can cause inconsistent missing data HOT 6
- deletes don't affect stale metrics. They may resurface if max-stale gets increased HOT 2
- Move to go modules for dependency management HOT 5
- Authentication in mt-gateway or document other way to proceed without tsdb-gw HOT 4
- Panic in mt-whisper-importer-reader HOT 1
- Conf parsing changes fail to parse regex HOT 2
- Multiple shards on same hardware node HOT 2
- metrictank memory issues HOT 6
- UnpartitionedMemoryIdx.Get does not check writeQueue
- MetricData messages in mdm topic poorly defined. make versioning explicit?
- Is the project stalled? HOT 2
- Control partition size using Cassandra as backend HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from metrictank.