Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MLCOMPUTE-1160 | consolidate tron and paasta logic to service config lib #139

Merged
merged 9 commits into from
Feb 15, 2024

Conversation

CaptainSame
Copy link
Contributor

@CaptainSame CaptainSame commented Feb 8, 2024

Testing:
Paasta:
Config diff between older version and this version: https://fluffy.yelpcorp.com/i/p4hQp4kN0lmsCJ7zLn3n0bRdm0W451Kz.html

Jupyter:
Config diff between older version and this version:
https://fluffy.yelpcorp.com/i/s27lb1H0sVbzb3q7cqjCrM3PbpkgPDKD.html

@@ -347,24 +347,6 @@ def _get_local_spark_env(
}


def _get_k8s_resource_name_limit_size_with_hash(name: str, limit: int = 63, suffix: int = 4) -> str:
Copy link
Contributor

Choose a reason for hiding this comment

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

Adding docs: Moved to utils.

@@ -929,31 +911,44 @@ def _append_event_log_conf(

if len(self.spark_srv_conf.items()) == 0:
log.warning('spark_srv_conf is empty, disable event log')
spark_opts.update({"spark.eventLog.enabled": "false"})
Copy link
Contributor

Choose a reason for hiding this comment

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

why?

Copy link
Contributor

Choose a reason for hiding this comment

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

spark.eventLog.enabled is default to false, perhaps we don't need this line if srv_config is empty?

Copy link
Contributor Author

Choose a reason for hiding this comment

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

I have added this to be explicit and not leave the state to the default behaviour, since the log clearly says we are disabling it. I can remove this if you feel strongly against it

Copy link
Contributor

Choose a reason for hiding this comment

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

I see, both looks okay to me

Copy link
Contributor

Choose a reason for hiding this comment

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

Optional: Maybe we can remove this whole section? I can't think of a reason on why to disable to event log hen spark-srv-conf is empty. I recall generally spark event log used to be disabled to avoid risk of leaking of secrets. Since that is not happening anymore, AFAIK, maybe we can remove this section?

@88manpreet 88manpreet self-requested a review February 13, 2024 18:53
@88manpreet
Copy link
Contributor

Did you mean to attach fluffy for the Jupyter config diff as an example?

@CaptainSame CaptainSame merged commit c8f0180 into master Feb 15, 2024
1 check passed
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.

None yet

3 participants