Description Usage Arguments Details Value Functions
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.
1 2 3 4 | initializeCloudProvider(provider, cluster, verbose)
## S4 method for signature 'ANY'
initializeCloudProvider(provider, cluster, verbose = 0L)
|
provider |
S4 |
cluster |
S4 |
verbose |
Integer. The verbose level, default 1. |
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
.
No return value
initializeCloudProvider,ANY-method
: The default cloud initialization method, do nothing.
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.