-
Notifications
You must be signed in to change notification settings - Fork 17
Runtime Configuration
Environment Variables
LD_LIBRARY_PATH
Sledge serverless functions are ahead-of-time compiled to native code and output at POSIX(?) shared libraries via the aWsm toolchain. As such, the Sledge runtime loads serverless modules using standard shared library techniques. Similar to how the PATH variable is used to define the directories that are searched for executable binaries, the LD_LIBRARY_PATH is used by the linker to determine which directories to search for shared libraries. This is useful for helping the runtime find the *.so files references in the specification loaded at runtime.
Example:
LD_LIBRARY_PATH=/sledge/runtime/bin sledgert spec.jsonSLEDGE_NWORKERS - Soft cap on the number of worker threads. Configurable between 1 and 1 less than the total number of online processors as measured by
sysconf(_SC_NPROCESSORS_ONLN)
Example
SLEDGE_NWORKERS=1 sledgert spec.json