Skip to content

Commit

Permalink
revert (#1316)
Browse files Browse the repository at this point in the history
  • Loading branch information
BalaBalaYi authored Nov 4, 2024
1 parent d9dc1c1 commit a55b1cf
Showing 1 changed file with 1 addition and 4 deletions.
5 changes: 1 addition & 4 deletions dlrover/python/master/scaler/pod_scaler.py
Original file line number Diff line number Diff line change
Expand Up @@ -472,12 +472,9 @@ def _create_pod(self, node: Node):
env.append(V1EnvVar(name=NodeEnv.JOB_NAME, value=self._job_name))
env.append(V1EnvVar(name=NodeEnv.JOB_UID, value=self._job_uid))

# At the cost of increased performance overhead, these provide greater
# stability in concurrent scenarios. (need grpcio version>=1.58)
# A history background: https://chromium.googlesource.com/external/
# github.com/grpc/grpc/+/refs/tags/v1.19.0-pre1/doc/fork_support.md
env.append(V1EnvVar(name=NodeEnv.GRPC_ENABLE_FORK, value="true"))
env.append(V1EnvVar(name=NodeEnv.GRPC_POLL_STRATEGY, value="poll"))
env.append(V1EnvVar(name=NodeEnv.GRPC_ENABLE_FORK, value="false"))

worker_num = self._config_worker_num
if worker_num == 0:
Expand Down

0 comments on commit a55b1cf

Please sign in to comment.