If we want to upgrade shuffle servers in partition mode, we need to edit the rss object as follows:
- update
.spec.shuffleServer.image
with new image version of shuffle server - set
.spec.shuffleServer.sync
field totrue
- update
.spec.shuffleServer.upgradeStrategy
field:- set
.spec.shuffleServer.upgradeStrategy.type
to bePartitionUpgrade
- update
.spec.shuffleServer.upgradeStrategy.partition
field, which has the same meaning as.spec.updateStrategy.rollingUpdate.partition
field in StatefulSet workload (the replicas whose index is less than this value will keep the old version, and the replicas whose index is greater than or equal to this value will be updated to the new version)
- set
spec:
shuffleServer:
image: "${rss-shuffle-server-image}"
sync: true
upgradeStrategy:
type: "PartitionUpgrade"
partition: 2
We can refer to the example.