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

An option to disable YT calls inside DQ #7430

Merged
merged 1 commit into from
Aug 2, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions ydb/library/yql/providers/dq/config/config.proto
Original file line number Diff line number Diff line change
Expand Up @@ -124,6 +124,7 @@ message TDqConfig {
optional bool EnforceJobUtc = 33;
optional TSpillingSettings SpillingSettings = 38;
optional TDiskRequest DiskRequest = 39;
optional bool EnforceJobYtIsolation = 40;
}

repeated TYtBackend YtBackends = 5;
Expand Down
3 changes: 3 additions & 0 deletions ydb/library/yql/tools/dq/worker_job/dq_worker.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -237,6 +237,9 @@ namespace NYql::NDq::NWorker {
if (backendConfig.GetEnforceJobUtc()) {
pfOptions.Env["TZ"] = "UTC0";
}
if (backendConfig.GetEnforceJobYtIsolation()) {
pfOptions.Env["YT_ALLOW_HTTP_REQUESTS_TO_YT_FROM_JOB"] = "0";
}
pfOptions.EnablePorto = backendConfig.GetEnablePorto() == "isolate";
pfOptions.PortoLayer = backendConfig.GetPortoLayer().size() == 0 ? "" : layerDir;
pfOptions.MaxProcesses = capacity*1.5;
Expand Down
Loading