Hi folks, I have improved the way how we utilize the three VMs for Jenkins pipeline. Instead of using openwhisk1 as the edge service node, running all the services except invoker, we can also schedule openwhisk2 and openwhisk3 to run the edge service as well.
How to implement the distributed model to deploy openwhisk? The deployment topology is orchestrated as below: If openwhisk1 runs as the edge service, openwhisk2 runs invoker0 and openwhisk3 runs invoker1. If openwhisk2 runs as the edge service, openwhisk3 runs invoker0 and openwhisk1 runs invoker1. If openwhisk3 runs as the edge service, openwhisk1 runs invoker0 and openwhisk2 runs invoker1. Even three of these deployments are able to run at the same time, instead of one deployment at a time. For safety reasons, I also added resource lock to each node in Jenkinsfile, so that even if the job is scheduled to a busy node, it will wait there till the previous job finishes. I am now looking at the test to stop one of the invokers and run the designated tests. If you have any idea on how to do that, welcome to chime in. Thank you. Best wishes. Vincent Hou (侯胜博) Advisory Software Engineer, OpenWhisk Contributor, Open Technology, IBM Cloud Notes ID: Vincent S Hou/Raleigh/IBM, E-mail: [email protected], Phone: +1(919)254-7182 Address: 4205 S Miami Blvd (Cornwallis Drive), Durham, NC 27703, United States -----Vincent S Hou/Raleigh/IBM wrote: ----- To: [email protected] From: Vincent S Hou/Raleigh/IBM Date: 03/12/2019 10:59AM Subject: Current status of Jenkins setup for OpenWhisk Hi OpenWhiskers, I have come back from my holiday last week, and officially start to work this week. During the past few days, I have made some progress in terms of getting the access to openwhisk VMs and Apache Jenkins. Current state: My apache ID has granted root access to the VMs: openwhisk-vm1-he-de.apache.org openwhisk-vm2-he-de.apache.org openwhisk-vm3-he-de.apache.org I am now able to use the command ssh openwhisk-vm1-he-de.apache.org -l <my apache ID> to access the VM via terminal. My Apache ID has been added into the hudson-jobadmin group: https://whimsy.apache.org/roster/group/hudson-jobadmin, which means I have earned the admin access to Apache Jenkins environment at https://builds.apache.org/. I should be able to create build or pipeline. I have granted the user "jenkins" root access within three of these VMs. Work items to do: Next, I will configured the ssh access among three of these VMs, since I plan to use one VM as the master, launching all the services except invoker, and the other two as designated nodes to launch invoker service. Travis CI has already tested the case, when all the openwhisk services are installed on one server. I plan to use Jenkins to test openwhisk installed in a distributed way. Welcome to chime in and add your comments, if you have any idea about how to use these three VMs for OpenWhisk. Thank you. Best wishes. Vincent Hou (侯胜博) Advisory Software Engineer, OpenWhisk Contributor, Open Technology, IBM Cloud Notes ID: Vincent S Hou/Raleigh/IBM, E-mail: [email protected], Phone: +1(919)254-7182 Address: 4205 S Miami Blvd (Cornwallis Drive), Durham, NC 27703, United States
