Hello,



Le jeu. 18 févr. 2021 à 15:02, cnspring2002 <cnspring2002@aliyun.com> a écrit :
Hello, I have a question about "count" in lava multinode, for next:

lava-multinode:
  roles:
   device:
     count: 2
     device_type: xxx

What does "count" mean? I know the job will only be scheduled if there are 2 "xxx" based device idle.


"count" is the number of devices that will have this exact role. They will run the exact same job in parallel.
 
But, after that, how I could use one device do one task, and use another device to do another task? How can I assign different tasks to the 2 devices with the same devicetype?



Then you should create another role with count=1.
 
E.g.
device xxx1 based on xxx
device xxx2 based on xxx
Then xxx1 run "ls" while xxx2 run "uname"? 


_______________________________________________
Lava-users mailing list
Lava-users@lists.lavasoftware.org
https://lists.lavasoftware.org/mailman/listinfo/lava-users


--
Rémi Duraffort
LAVA Architect
Linaro