Skip to content

Commit

Permalink
An option to disable YT calls inside DQ (#7430)
Browse files Browse the repository at this point in the history
  • Loading branch information
vitstn authored Aug 2, 2024
1 parent 07600db commit a1823e1
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
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

0 comments on commit a1823e1

Please sign in to comment.