Comments (3)
-
IIRC it was by design; the thought was we would cache and not block the pipeline while elastic search was unavailable. If it never comes back there aren't a lot of options you could terminate the plugin and optionally stop Hindsight. An infinite retry would eventually backpressure the entire system and the reason for not discarding is because that is how it was configured.
-
No the retry applies to the message already added to the batch so no data will be lost when it resumes.
-
Only a failure return (-1) will log a warning
-
Correct there isn't any mechanism to feed that information back at the moment.
-
If you have set 'preserve_data = true' set then batch_count is restored along with the retry state
from lua_sandbox_extensions.
I think in this case the best thing to do would be add a termination option for the case you don't want the batch file to keep growing and you don't want to discard data. You would simply retry X times, terminate the plugin (based on your configuration you could even have that cause HS to shutdown) and then restart HS when elastic search is back on line. For the second option you could simply have retry X == 0 mean infinite retry where the data will build up in the HS queues until it backpressures due to limited disk space or elastic search comes back on line and it can be drained down in batch size chunks.
from lua_sandbox_extensions.
Hi,
- I'll try to add some options
- I was off by one :), the message that we use for the retry is already in the batch, so we don't drop it ...
3)4) #89 i guess - didn't know about this one, nice
Thanks
from lua_sandbox_extensions.
Related Issues (20)
- taskcluster - the project is NULL when there is treeherder data but no taskcluster route HOT 1
- taskcluster - remove the migration code HOT 1
- lfs - tail.lua is not erroring on an invalid checkpoint HOT 1
- taskcluster - update sql queries to handle latent billing data HOT 2
- taskcluster - update mozilla_com table with people.m.o data HOT 3
- taskcluster - deprecate derived_kind_costs
- taskcluster - add the calculated_taskgroup_bins scheduled query to source control
- taskcluster - derived_taskgroup_costs tweak HOT 3
- gcp - bigquery output load failure in the timer_event will not alert HOT 1
- taskcluster - refactor the live_log decoder HOT 1
- gcp - bigquery output 'hung' when the bq command never returned HOT 1
- papertrail - invalidate outdated checkpoints HOT 1
- Support s3-sqs extension
- taskcluster - generalize/simplify the nightly taskcluster backfill
- taskcluster - use the artifact list to determine what perfherder data is available
- taskcluster - investigate analysis.influx_workertype OOM termination
- es_index_from_timestamp behavior
- Travis CI free usage ends Dec 3; mozilla repos should switch to other CI platforms
- Do I have to install aws-cpp-sdk-core by myself?
- Migrate CircleCI from mozilla/cidockerbases:docker-latest HOT 3
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 lua_sandbox_extensions.