Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

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 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-filtergateway-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.

...

  • alert-threshold
  • batch-size
  • batch-time-interval
  • group-transaction-events
  • gateway-event-filter
  • gateway-transport-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 updatemethods setAlertThreshold(), setBatchSize(), setBatchTimeInterval(), setGroupTransactionEvents(), setGatewayEventFilters() will be added to GatewaySender.

...