ID | IEP-103 | ||||||||
Author | |||||||||
Sponsor | |||||||||
Created |
| ||||||||
Status |
|
Table of Contents |
---|
...
Deploys a deployment unit with identifier <deployment_unit_id>
to the cluster.
Code Block | ||
---|---|---|
| ||
$ ignite3 unit deploy <deployment_unit_id> --version <deployment_unit_version> --path <file>|<dir> |
...
The deployment unit must be uploaded to the CMG Raft group majority nodes and must include a leader in the current term (Fig. 1 shows an example of such a majority with an included leader but it is not mandatory). It will ensure that the system is able to detect the change of leader and deploy units correctly; the leader is always a part of the majority during the uploading process.
While majority nodes are available there is at least one node which has an uploaded deployment unit and this deployment unit could be deployed on another node on demand. Otherwise the cluster itself can’t operate correctly.
...
depOpId
the meta storage revision number.clusterDURecord(depOpId, UPLOADING)
. This operation could fail because another process has already created a record for the same deployment unit in any status.nodeDURecord(depOpId, UPLOADING, node)
.nodeDURecord.status
must be changed to DEPLOYED
value - nodeDURecord(depOpId, DEPLOYED, node)
.clusterDURecord.status
must be changed to DEPLOYED
value - clusterDURecord(depOpId, DEPLOYED)
....