This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
import random | |
from locust import HttpUser, task, between, SequentialTaskSet | |
from datetime import date, timedelta | |
class BaseFlow(SequentialTaskSet): | |
def __init__(self, *args, **kwargs): | |
super().__init__(*args, **kwargs) | |
self.category_id = None |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
node_num=$(kubectl get no -o json | tee nodes.json | jq ".items" | grep metadata | wc -l) && for i in $(seq 0 $(echo "$node_num - 1" | bc)); do cat nodes.json | jq ".items[$i].status.nodeInfo" && cat nodes.json | jq ".items[$i].status.allocatable"; done && rm nodes.json |