Annotation | Link to the documentation |
---|---|
com.openfaas.health.http.path | Custom HTTP health check |
com.openfaas.health.http.initialDelay | Custom HTTP health check |
com.openfaas.serviceaccount | Custom service account |
com.openfaas.scale.min | Min/max replicas |
com.openfaas.scale.max | Min/max replicas |
com.openfaas.scale.factor | Min/max replicas |
com.openfaas.scale.zero | Min/max replicas |
com.openfaas.profile | [Using Profiles When You Deploy |
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 | |
while :; do | |
mogadm check | cut -d] -f2- | awk '/writeable/{print "mogilefs."$1".free "$4" "systime()}' | nc -q0 graphite 2003 | |
mogadm check | cut -d] -f2- | awk '/writeable/{print "mogilefs."$1".free_percent "int($5)" "systime()}' | nc -q0 graphite 2003 | |
sleep `date "+60-%s%%60" | bc` | |
done |
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 | |
for DC in "wdc04" "tok02" "ams03"; do | |
echo $DC | |
PARAMS="{ | |
'hostname': 'test', | |
'domain': 'example.com', | |
'datacenter': { 'name': '$DC' }, | |
'startCpus': 16, | |
'maxMemory': 16384, |
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 | |
apt-get install jq -y | |
ps axu | grep -oe "unix:[a-z0-9\.:\/\-]*.qmp" | while read QMP; do | |
echo $QMP; | |
LISTEN=$(echo -e '{"execute":"qmp_capabilities"}\n{"execute": "query-vnc"}' | socat - ${QMP} | tail -n1 | jq -r .return.host); | |
echo $LISTEN | |
if [ "$LISTEN" != "127.0.0.1" ]; then | |
PORT=$[$(echo -e '{"execute":"qmp_capabilities"}\n{"execute": "query-vnc"}' | socat - ${QMP} | tail -n1 | jq -r .return.service)-5900] | |
echo -e '{"execute":"qmp_capabilities"}\n{"execute": "change", "arguments": { "device": "vnc", "target": "127.0.0.1:'$PORT'" } }' | socat - ${QMP}; |
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 | |
TYPE=${1:-server} | |
while :; do | |
VSID=`slcli virtual list --columns id,hostname,pendingMigrationFlag | grep "$TYPE" | grep True | head -1 | cut -d ' ' -f1`; | |
if [[ -n "$VSID" ]]; then | |
echo "Next item to migrate: $VSID" | |
slcli vs detail "$VSID" | |
slcli call-api Virtual_Guest migrate "--id=$VSID" |