Skip to content
This repository was archived by the owner on Jul 20, 2022. It is now read-only.

Conversation

@maltesander
Copy link
Member

Some refactoring to prepare unit testing. Added check_labels method for master_url_hash to identify outdated workers (which do not currently have all master urls in their start command).
Added spark.port.maxRetries property to be able to avoid masters/workers/history searching new ports if their respective port is taken by incrementing the port number by 1.

@maltesander maltesander added the type/enhancement New feature or request label Mar 8, 2021
@maltesander maltesander requested a review from a team March 8, 2021 16:04
@maltesander maltesander self-assigned this Mar 8, 2021
@maltesander maltesander linked an issue Mar 8, 2021 that may be closed by this pull request
@lfrancke lfrancke requested review from a team and removed request for a team March 8, 2021 23:10
Copy link
Member

@lfrancke lfrancke left a comment

Choose a reason for hiding this comment

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

Very minor stuff


/// The worker start command needs to be extended with all known master nodes and ports.
/// The required URLs are in format: 'spark://<master-node-name>:<master-port'
/// The required URLs are in format: '<master-node-name>:<master-port' with one time prefix 'spark://'
Copy link
Member

Choose a reason for hiding this comment

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

I don't understand what you mean by "one time prefix"?

labels.get(HASH_LABEL),
labels.get(TYPE_LABEL),
labels.get(VERSION_LABEL),
labels.get(pod_utils::HASH_LABEL),
Copy link
Member

Choose a reason for hiding this comment

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

You could use them directly if you want to.
I'll leave it up to do

use pod_utils::HASH_LABEL I mean

true
}

pub async fn check_worker_master_urls(&self) -> SparkReconcileResult {
Copy link
Member

Choose a reason for hiding this comment

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

Could you add a comment what's being checked here?

@maltesander maltesander requested a review from lfrancke March 9, 2021 10:55
@maltesander maltesander merged commit 3be3aed into main Mar 9, 2021
@maltesander maltesander deleted the refactoring branch March 9, 2021 11:34
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

type/enhancement New feature or request

Projects

None yet

Development

Successfully merging this pull request may close these issues.

Rolling update for workers whenever masters are added or deleted

3 participants