initializeCloudProvider {DockerParallel} | R Documentation |
Initialize the service provider
Description
Initialize the service provider. This function will be called prior
to runDockerServer
and runDockerWorkers
. It is used to initialize the cloud-specific
settings(e.g. Initialize the cloud network). The function might be called many
times. Developers can cache the cloud status and speed up the initialization
process.
Usage
initializeCloudProvider(provider, cluster, verbose)
## S4 method for signature 'ANY'
initializeCloudProvider(provider, cluster, verbose = 0L)
Arguments
provider |
S4 |
cluster |
S4 |
verbose |
Integer. The verbose level, default 1. |
Details
Based on the cloud nature, an initialization process might be required
before deploying the container on the cloud. This function will be called by
the DockerCluster
object before running the server and workers. The default
method will do nothing.
Besides initializing the cloud settings, if the server container will be deployed
by the cloud provider. The function should call .setServerWorkerSameLAN
to inform
the DockerCluster
object whether the server and the workers are under the same router.
If .getServerWorkerSameLAN
returns TRUE
(default), the worker will connect to the
server using the server's private IP. Otherwise, the server's
public IP will be used.
Although it is possible to change any settings in the cluster object in this function,
the best practice is to only initialize provider
and
the value serverWorkerSameLAN
.
Value
No return value
Functions
-
initializeCloudProvider,ANY-method
: The default cloud initialization method, do nothing.