Skip to main content
Version: Next

Configure temporary file path

Function workers use java.io.tmpdir in the JVM as the default temporary file path, which is also used as the default extraction file path for each NAR package. NAR packages require a local file path to extract and load to the Java class loader.

If you want to change the default extraction file path for NAR packages to another directory, you can add the following parameter with the desired directory in the functions_worker.yml file. The configuration varies depending on the function runtime you are using.

Function runtimeConfiguration for temporary file path
Thread runtime
Process runtime
narExtractionDirectory
Kubernetes runtimefunctionRuntimeFactoryConfigs.narExtractionDirectory