mirror of
https://github.com/wassname/ray.git
synced 2026-06-30 05:09:18 +08:00
Inline objects (#3756)
* added store_client_ to object_manager and node_manager * half through... * all code in, and compiling! Nothing tested though... * something is working ;-) * added a few more comments * now, add only one entry to the in GCS for inlined objects * more comments * remove a spurious todo * some comment updates * add test * added support for meta data for inline objects * avoid some copies * Initialize plasma client in tests * Better comments. Enable configuring nline_object_max_size_bytes. * Update src/ray/object_manager/object_manager.cc Co-Authored-By: istoica <istoica@cs.berkeley.edu> * Update src/ray/raylet/node_manager.cc Co-Authored-By: istoica <istoica@cs.berkeley.edu> * Update src/ray/raylet/node_manager.cc Co-Authored-By: istoica <istoica@cs.berkeley.edu> * fiexed comments * fixed various typos in comments * updated comments in object_manager.h and object_manager.cc * addressed all comments...hopefully ;-) * Only add eviction entries for objects that are not inlined * fixed a bunch of comments * Fix test * Fix object transfer dump test * lint * Comments * Fix test? * Fix test? * lint * fix build * Fix build * lint * Use const ref * Fixes, don't let object manager hang * Increase object transfer retry time for travis? * Fix test * Fix test? * Add internal config to java, fix PlasmaFreeTest
This commit is contained in:
@@ -6,8 +6,10 @@ import com.google.common.collect.ImmutableList;
|
||||
import com.typesafe.config.Config;
|
||||
import com.typesafe.config.ConfigException;
|
||||
import com.typesafe.config.ConfigFactory;
|
||||
import com.typesafe.config.ConfigValue;
|
||||
|
||||
import java.io.File;
|
||||
import java.util.ArrayList;
|
||||
import java.util.List;
|
||||
import java.util.Map;
|
||||
import org.ray.api.id.UniqueId;
|
||||
@@ -50,6 +52,7 @@ public class RayConfig {
|
||||
public final Long objectStoreSize;
|
||||
|
||||
public final String rayletSocketName;
|
||||
public final List<String> rayletConfigParameters;
|
||||
|
||||
public final String redisServerExecutablePath;
|
||||
public final String redisModulePath;
|
||||
@@ -162,6 +165,14 @@ public class RayConfig {
|
||||
// raylet socket name
|
||||
rayletSocketName = config.getString("ray.raylet.socket-name");
|
||||
|
||||
// raylet parameters
|
||||
rayletConfigParameters = new ArrayList<String>();
|
||||
Config rayletConfig = config.getConfig("ray.raylet.config");
|
||||
for (java.util.Map.Entry<java.lang.String,ConfigValue> entry : rayletConfig.entrySet()) {
|
||||
String parameter = entry.getKey() + "," + String.valueOf(entry.getValue().unwrapped());
|
||||
rayletConfigParameters.add(parameter);
|
||||
}
|
||||
|
||||
// library path
|
||||
this.libraryPath = new ImmutableList.Builder<String>().add(
|
||||
rayHome + "/build/src/plasma",
|
||||
|
||||
@@ -205,7 +205,7 @@ public class RunManager {
|
||||
"0", // number of initial workers
|
||||
String.valueOf(maximumStartupConcurrency),
|
||||
ResourceUtil.getResourcesStringFromMap(rayConfig.resources),
|
||||
"", // The internal config list.
|
||||
String.join(",", rayConfig.rayletConfigParameters), // The internal config list.
|
||||
buildPythonWorkerCommand(), // python worker command
|
||||
buildWorkerCommandRaylet() // java worker command
|
||||
);
|
||||
|
||||
@@ -85,6 +85,10 @@ ray {
|
||||
raylet {
|
||||
// RPC socket name of Raylet
|
||||
socket-name: /tmp/ray/sockets/raylet
|
||||
|
||||
// See src/ray/ray_config_def.h for options.
|
||||
config {
|
||||
}
|
||||
}
|
||||
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user