k8s操作手册 2.3
1/manifests/�gera- operator.yaml # wget h�ps://raw.githubusercontent.com/projectcalico/calico/v3.26.1/manifests/custom- resources.yaml #创建控制器 Install the Tigera Calico operator and custom resource defini�ons defini�ons # kubectl create -f �gera-operator.yaml #如果需要更改镜像,可编辑此 文件 # more �gera-operator.yaml | grep -i image: image: quay.io/�gera/operator:v1.30.4 #修改pod网段 # sed -i custom resource # kubectl create -f custom-resources.yaml #如果需要更改镜像,只能部署 后,只能更改相应的daemonset及deployment #查看calico节点状态,状态全部为Running则为启动成功 # kubectl get pods -n �gera-operator NAME0 码力 | 126 页 | 4.33 MB | 1 年前3python3学习手册
Condi�on()方法创建一个条件对象, 条件对象能让一个进程A暂停下来,等待另一个进程B的通知,当进程B 满足某个条件后通知进程A继续运行 import multiprocessing def operator_func(cond, name): cond.acquire() print(name + ": 我可以变更了吗?") cond.notify() # 发消息给Manager,唤醒一个挂起的线程 变更方案有问题,先不变更,先改方案") cond.notify() # 发消息给Operator,唤醒一个挂起的线程 cond.wait() # 等待Operator的回复 print(name + ": 好,可以变更了") cond.notify() # 发消息给Operator,唤醒一个挂起的线程 cond.release() def main(): cond = multiprocessing.Condition() opuser = multiprocessing.Process(target=operator_func, args=(cond, "cof-lee",)) mgmt = multiprocessing.Process(target=manager_func, args=(cond, "boss",))0 码力 | 213 页 | 3.53 MB | 1 年前3The Phoenix Project
piling up at the bottleneck.” Resource Utilization “The wait time is the ‘percentage of time busy’ divided by the ‘percentage of time idle.’ In other words, if a resource is fifty percent busy, then if a resource is ninety percent busy, the wait time is ‘ninety percent divided by ten percent’, or nine hours. In other words, our task would wait in queue nine times longer than if the resource were0 码力 | 3 页 | 154.45 KB | 5 月前3The DevOps Handbook
which become obsolete shortly after they are written d. Pushing large batches of work to teams and special committees for approval and processing and then waiting for responses 3. Instead a. Use peer0 码力 | 8 页 | 22.57 KB | 5 月前3The DevOps Handbook
run in parallel iii. Generally, limit manual testing if automated tests haven’t passed iv. For resource intensive suites, performance tests, IA, execute as frequently as possible i. WRITE OUR AUTOMATED0 码力 | 8 页 | 23.08 KB | 5 月前3A Seat at the Table: IT Leadership in the Age of Agility - Part 2
project sponsors (1) developing a formal proposal that incorporates estimated benefits, risks, and resource requirements and (2) submitting the proposal to decision makers who select preferred investments0 码力 | 7 页 | 387.61 KB | 5 月前3
共 6 条
- 1