You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 6 Next »

To be Reviewed By: November 16th, 2020

Authors: Mario Ivanac

Status: Draft | Discussion | Active | Dropped | Superseded

Superseded by: N/A

Related: N/A

Problem

Currently, we can configure gateway sender, only at creation of gateway sender.

So if we want to modify any gateway sender attribute, we need to perform following steps:

  • detach gateway sender from region
  • destroy gateway sender
  • create gateway sender with modified attributes
  • attach gateway sender to region

Performing all these steps while traffic is ongoing, will result with data incosistency.


Due to that, we would like to introduce new command "alter gateway-sender" which would update some parameters in runtime. For now parameters of interest are:

  • alert-threshold
  • batch-size
  • batch-time-interval
  • group-transaction-events
  • gateway-event-filter
  • gateway-transport-filter


Anti-Goals


Solution

Implement new command "alter gateway-sender" which will update gateway senders parameters in runtime. Parameters will be updated for gateway senders which have same ID as specified in command.

Current proposal will cover only changes for following parameters:

  • alert-threshold
  • batch-size
  • batch-time-interval
  • group-transaction-events
  • gateway-event-filter


After command is executed, changes will be applied to specified gateway senders (ID), on specified (or all) members, and also in cluster configuration.

To avoid any interference, dispatch thread will be paused in moment when changes are applied for sender on each member (similar as it is done for "load-balance gateway-sender" command).


PR with proposed solution: https://github.com/apache/geode/pull/5630

Changes and Additions to Public Interfaces

New method update() will be added to GatewaySender.

Performance Impact

None

Backwards Compatibility and Upgrade Path

No upgrade or backwards compatibility issues.

Prior Art

What would be the alternatives to the proposed solution? What would happen if we don’t solve the problem? Why should this proposal be preferred?

FAQ

Answers to questions you’ve commonly been asked after requesting comments for this proposal.

Errata

What are minor adjustments that had to be made to the proposal since it was approved?

  • No labels