KubeFATE icon indicating copy to clipboard operation
KubeFATE copied to clipboard

How to dynamically expand multiple parties

Open KAgBMan opened this issue 2 years ago • 4 comments

Now I use the K8S to successfully deploy two parties, but now I need to add a participant for third-party computing, How can I add a participant without changing the status quo? Or can I only reinstall all clusters? Is there a place that can be configured to add the host and partyid of the third party?

KAgBMan avatar Dec 12 '22 07:12 KAgBMan

You can add new party information by modifying the partyList or route_table of cluster.yaml, and then use kubefate cluster update -f cluster.yaml to update the newly added party information to the existing cluster.

example:


rollsite:
  type: NodePort
  nodePort: 30091
  partyList:
  - partyId: 9999
    partyIp: 192.168.9.1
    partyPort: 30091
  - partyId: 10000
    partyIp: 192.168.10.1
    partyPort: 30101
  - partyId: 8888
    partyIp: 192.168.8.1
    partyPort: 30081

owlet42 avatar Dec 13 '22 04:12 owlet42

@owlet42 Will the update affect other modules or restart the cluster automatically?

KAgBMan avatar Dec 19 '22 02:12 KAgBMan

@owlet42 How to use router_table to modify the party list? I find a file in pod of rollsite ,the path is /data/projects/fate/eggroll/conf/route_table/router_table.json, Can I modify the party list by modifying this file?

KAgBMan avatar Dec 19 '22 02:12 KAgBMan

@KAgBMan It means that the update that modifies the partyList will not restart any components, and you need to wait for the rollsite to automatically load after the update. The files in the pod are read-only and cannot be modified. You can modify the configmap, but it is not recommended. It is not friendly to modify the configmap.

owlet42 avatar Jan 10 '23 09:01 owlet42