Method DeployZipThroughService
- Namespace
- Scaleout.Client.GridDeployment
- Assembly
- Scaleout.Client.dll
DeployZipThroughService(GridConnection, string, string, string, string, byte[], InvocationGridOptions)
Deploys an Invocation Grid worker application that has been packaged as a zip file.
public static void DeployZipThroughService(GridConnection conn, string igName, string pathToZip, string executableName, string cmdLineParams, byte[] startupParam, InvocationGridOptions options)
Parameters
conn
GridConnectionGridConnection to a ScaleOut store.
igName
stringName of the Invocation Grid.
pathToZip
stringPath to the zip file (on the local filesystem) that will be deployed to the ScaleOut hosts.
executableName
stringName of the executable to run, relative to the working directory
cmdLineParams
stringOptional command line parameters to supply to the IG worker process at startup.
startupParam
byte[]Optional, arbitrary payload that is made available to the Invocation Grid worker process when it starts up.
options
InvocationGridOptionsAn object that configures the behavior of this invocation grid.
Remarks
The contents of the supplied zip file will be copied to ScaleOut host systems and decompressed into folder under %ProgramData%\ScaleOut Software\IG. (On Linux, this will be /usr/share/ScaleOut Software/IG).
After the zip file has been deployed to this temporary directory, the executableName
will be launched on every ScaleOut host--the supplied path should be relative to the decompressed folder. For
example, if your zip file contains an executable call MyWorker.exe in the top level of the
zip file, the executableName
should be "MyWorker.exe".
DeployZipThroughService(GridConnection, string, string, string, string, byte[])
Deploys an Invocation Grid worker application that has been packaged as a zip file.
public static void DeployZipThroughService(GridConnection conn, string igName, string pathToZip, string executableName, string cmdLineParams, byte[] startupParam)
Parameters
conn
GridConnectionGridConnection to a ScaleOut store.
igName
stringName of the Invocation Grid.
pathToZip
stringPath to the zip file (on the local filesystem) that will be deployed to the ScaleOut hosts.
executableName
stringName of the executable to run, relative to the working directory
cmdLineParams
stringOptional command line parameters to supply to the IG worker process at startup.
startupParam
byte[]Optional, arbitrary payload that is made available to the Invocation Grid worker process when it starts up.
Remarks
The contents of the supplied zip file will be copied to ScaleOut host systems and decompressed into folder under %ProgramData%\ScaleOut Software\IG. (On Linux, this will be /usr/share/ScaleOut Software/IG).
After the zip file has been deployed to this temporary directory, the executableName
will be launched on every ScaleOut host--the supplied path should be relative to the decompressed folder. For
example, if your zip file contains an executable call MyWorker.exe in the top level of the
zip file, the executableName
should be "MyWorker.exe".