Skip to content

SAMZA-2613: API Changes to make Standby Container Allocation Rack Aware#1453

Merged
mynameborat merged 1 commit intoapache:masterfrom
PawasChhokra:rack-aware-api-changes
Dec 22, 2020
Merged

SAMZA-2613: API Changes to make Standby Container Allocation Rack Aware#1453
mynameborat merged 1 commit intoapache:masterfrom
PawasChhokra:rack-aware-api-changes

Conversation

@PawasChhokra
Copy link
Contributor

Feature: The aim of this feature is to make all standby container requests rack aware such that all active containers and their corresponding standby containers are always on different racks. This helps with decreased downtime of applications during rack failures. One of the requirements of this feature is that the value of job.standbytasks.replication.factor is at max 2 for the rack awareness functionality to be honored.

Changes:

  1. Added a new interface called FaultDomainManager which implements the YarnFaultDomainManager class for Yarn. This class takes care of the retrieval of node to rack information from Yarn.
  2. Also defined what FaultDomain and FaultDomainType means.
  3. Added config to enable making fault domain aware requests.
  4. Added metrics to track fault domain aware requests.

API Changes: Added a new FaultDomainManager interface.

Tests: Unit Testing and tested with a running job.

Upgrade instructions: TBD

Usage Instructions: For a job with host affinity and standby containers, set the config cluster-manager.fault-domain-aware.standby.enabled to true to enable this feature.

Copy link
Contributor

@mynameborat mynameborat left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Reviewed these changes as part of #1446. Splitting into separate PR to get the API changes in first.

Looks good to me.

@mynameborat mynameborat merged commit 708a6de into apache:master Dec 22, 2020
@PawasChhokra PawasChhokra changed the title SAMZA-2605: API Changes to make Standby Container Allocation Rack Aware SAMZA-2613: API Changes to make Standby Container Allocation Rack Aware Jan 4, 2021
lakshmi-manasa-g pushed a commit to lakshmi-manasa-g/samza that referenced this pull request Feb 9, 2021
)

Feature: The aim of this feature is to make all standby container requests rack aware such that all active containers and their corresponding standby containers are always on different racks. This helps with decreased downtime of applications during rack failures. One of the requirements of this feature is that the value of job.standbytasks.replication.factor is at max 2 for the rack awareness functionality to be honored.

Changes:

Added a new interface called FaultDomainManager which implements the YarnFaultDomainManager class for Yarn. This class takes care of the retrieval of node to rack information from Yarn.
Also defined what FaultDomain and FaultDomainType means.
Added config to enable making fault domain aware requests.
Added metrics to track fault domain aware requests.

API Changes: Added a new FaultDomainManager interface.
tranjith pushed a commit to tranjith/samza that referenced this pull request Mar 23, 2021
)

Feature: The aim of this feature is to make all standby container requests rack aware such that all active containers and their corresponding standby containers are always on different racks. This helps with decreased downtime of applications during rack failures. One of the requirements of this feature is that the value of job.standbytasks.replication.factor is at max 2 for the rack awareness functionality to be honored.

Changes:

Added a new interface called FaultDomainManager which implements the YarnFaultDomainManager class for Yarn. This class takes care of the retrieval of node to rack information from Yarn.
Also defined what FaultDomain and FaultDomainType means.
Added config to enable making fault domain aware requests.
Added metrics to track fault domain aware requests.

API Changes: Added a new FaultDomainManager interface.
shekhars-li pushed a commit to shekhars-li/samza that referenced this pull request May 28, 2021
)

Feature: The aim of this feature is to make all standby container requests rack aware such that all active containers and their corresponding standby containers are always on different racks. This helps with decreased downtime of applications during rack failures. One of the requirements of this feature is that the value of job.standbytasks.replication.factor is at max 2 for the rack awareness functionality to be honored.

Changes:

Added a new interface called FaultDomainManager which implements the YarnFaultDomainManager class for Yarn. This class takes care of the retrieval of node to rack information from Yarn.
Also defined what FaultDomain and FaultDomainType means.
Added config to enable making fault domain aware requests.
Added metrics to track fault domain aware requests.

API Changes: Added a new FaultDomainManager interface.
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants