Giter Club home page Giter Club logo

Comments (1)

stanlemon avatar stanlemon commented on May 27, 2024

I believe these are all in SpoutConfig now:

///////////////////////////////////
// Failed Message Retry Config
///////////////////////////////////
/**
* (String) Defines which RetryManager implementation to use.
* Should be a full classpath to a class that implements the RetryManager interface.
* Default Value: "com.salesforce.storm.spout.dynamic.retry.ExponentialBackoffRetryManager"
*/
@ConfigDocumentation(
category = ConfigDocumentation.Category.DYNAMIC_SPOUT,
description = "Defines which RetryManager implementation to use. "
+ "Should be a full classpath to a class that implements the RetryManager interface.",
type = String.class,
required = true
)
public static final String RETRY_MANAGER_CLASS = "spout.retry_manager.class";
/**
* (int) Defines how many times a failed message will be replayed before just being acked.
* A negative value means tuples will be retried forever.
* A value of 0 means tuples will never be retried.
* A positive value means tuples will be retried up to this limit, then dropped.
*
* Default Value: -1
* Optional - Only required if you use the ExponentialBackoffRetryManager implementation.
*/
@ConfigDocumentation(
category = ConfigDocumentation.Category.DYNAMIC_SPOUT,
description = "Defines how many times a failed message will be replayed before just being acked. "
+ "A negative value means tuples will be retried forever. A value of 0 means tuples will never be retried. "
+ "A positive value means tuples will be retried up to this limit, then dropped.",
type = Integer.class
)
public static final String RETRY_MANAGER_RETRY_LIMIT = "spout.retry_manager.retry_limit";
/**
* (long) Defines how long to wait before retry attempts are made on failed tuples, in milliseconds.
* Each retry attempt will wait for (number_of_times_message_has_failed * min_retry_time_ms).
*
* Example: If a tuple fails 5 times, and the min retry time is set to 1000, it will wait at least (5 * 1000) milliseconds
* before the next retry attempt.
*
* Default Value: 2000 (2 seconds)
* Optional - Only required if you use the ExponentialBackoffRetryManager implementation.
*/
@ConfigDocumentation(
category = ConfigDocumentation.Category.DYNAMIC_SPOUT,
description = "Defines how long to wait before retry attempts are made on failed tuples, in milliseconds. "
+ "Each retry attempt will wait for (number_of_times_message_has_failed * min_retry_time_ms). "
+ "Example: If a tuple fails 5 times, and the min retry time is set to 1000, it will wait at least "
+ "(5 * 1000) milliseconds before the next retry attempt.",
type = Long.class
)
public static final String RETRY_MANAGER_INITIAL_DELAY_MS = "spout.retry_manager.initial_delay_ms";
/**
* (double) Defines how quickly the delay increases after each failed tuple.
*
* Example: A value of 2.0 means the delay between retries doubles. eg. 4, 8, 16 seconds, etc.
*
* Default Value: 2.0
* Optional - Only required if you use the ExponentialBackoffRetryManager implementation.
*/
@ConfigDocumentation(
category = ConfigDocumentation.Category.DYNAMIC_SPOUT,
description = "Defines how quickly the delay increases after each failed tuple. "
+ "Example: A value of 2.0 means the delay between retries doubles. eg. 4, 8, 16 seconds, etc.",
type = Double.class
)
public static final String RETRY_MANAGER_DELAY_MULTIPLIER = "spout.retry_manager.delay_multiplier";
/**
* (long) Defines an upper bound of the max delay time between retried a failed tuple.
*
* Default Value: 900000 (15 minutes)
* Optional - Only required if you use the ExponentialBackoffRetryManager implementation.
*/
@ConfigDocumentation(
category = ConfigDocumentation.Category.DYNAMIC_SPOUT,
description = "Defines an upper bound of the max delay time between retried a failed tuple.",
type = Long.class
)
public static final String RETRY_MANAGER_MAX_DELAY_MS = "spout.retry_manager.retry_delay_max_ms";

If you see any other inconsistencies, please open a new issue, thanks!

from storm-dynamic-spout.

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.