mirror of
https://github.com/wassname/ray.git
synced 2026-07-01 04:50:40 +08:00
[Core] Multi-tenancy: enable multi-tenancy by default (#10570)
* Add new job in Travis to enable multi-tenancy * fix * Update .bazelrc * Update .travis.yml * fix test_job_gc_with_detached_actor * fix test_multiple_downstream_tasks * fix lint * Enable multi-tenancy by default * Kill idle workers in FIFO order * Update test * minor update * Address comments * fix some cases * fix test_remote_cancel * Address comments * fix after merge * remove kill * fix worker_pool_test * fix java test timeout * fix test_two_custom_resources * Add a delay when killing idle workers * fix test_worker_failure * fix test_worker_failed again * fix DisconnectWorker * update test_worker_failed * Revert some python tests * lint * address comments
This commit is contained in:
@@ -235,10 +235,17 @@ public class RayConfig {
|
||||
codeSearchPath = Collections.emptyList();
|
||||
}
|
||||
|
||||
boolean enableMultiTenancy = false;
|
||||
boolean enableMultiTenancy;
|
||||
if (config.hasPath("ray.raylet.config.enable_multi_tenancy")) {
|
||||
enableMultiTenancy =
|
||||
Boolean.valueOf(config.getString("ray.raylet.config.enable_multi_tenancy"));
|
||||
} else {
|
||||
String envString = System.getenv("RAY_ENABLE_MULTI_TENANCY");
|
||||
if (StringUtils.isNotBlank(envString)) {
|
||||
enableMultiTenancy = "1".equals(envString);
|
||||
} else {
|
||||
enableMultiTenancy = true; // Default value
|
||||
}
|
||||
}
|
||||
|
||||
if (!enableMultiTenancy) {
|
||||
|
||||
Reference in New Issue
Block a user