import (
_ "net/http/pprof"
"net/http"
)
This file contains hidden or 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
INFO 👷 Setting up whisper... version=v1.0.0 | |
INFO ✅ Done! | |
INFO 🕑 Monitoring messages to sign... | |
INFO Found 6 messages... | |
INFO Signing message ... msg-id=467099 | |
Signature sent for msg 467099! | |
INFO Signing message ... msg-id=467100 | |
Signature sent for msg 467100! | |
INFO Signing message ... msg-id=470001 | |
Signature sent for msg 470001! |
This file contains hidden or 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 | |
printSeparator() { | |
echo "###############################" | |
} | |
tabOutput() { | |
sed "s/^/\t/" | |
} |
This file contains hidden or 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
myorg=pcheliniy | |
repo=chartrepo | |
### get wf ids, names, paths | |
gh api repos/${myorg}/${repo}/actions/workflows | jq -r '.workflows | .[] | .id, .name, .path, []' | |
wf_id=123456789 | |
### remove runs history | |
gh api repos/${myorg}/${repo}/actions/workflows/${wf_id}/runs | jq -r '.workflow_runs | .[] | .id' | while read line; do | |
gh api repos/${myorg}/${repo}/actions/runs/$line -X DELETE; |
Общая информация должна быть описана в общей wiki \ readme проекта.
- Название приложение, краткое описание, назначение, и информация о команде \ разработчике которая его поддерживает.
- Ссылки на дашборды проекта.
- Информация о людях \ командах которые могут деплоить приложение на прод.
- Критичность сервиса (тир1 - высоко критичное для бизнеса, тир2 - критичное для внутренних сервисов, тир3 - не критичное)
- Список критичных эндпойнтов сервиса, которые должны быть закрыты снаружи (basic auth или просто запрещены)
This file contains hidden or 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
Latency Comparison Numbers (~2012) | |
---------------------------------- | |
L1 cache reference 0.5 ns | |
Branch mispredict 5 ns | |
L2 cache reference 7 ns 14x L1 cache | |
Mutex lock/unlock 25 ns | |
Main memory reference 100 ns 20x L2 cache, 200x L1 cache | |
Compress 1K bytes with Zippy 3,000 ns 3 us | |
Send 1K bytes over 1 Gbps network 10,000 ns 10 us | |
Read 4K randomly from SSD* 150,000 ns 150 us ~1GB/sec SSD |
This file contains hidden or 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
.DEFAULT_GOAL:=help | |
SHELL:=/bin/bash | |
##@ Dependencies | |
.PHONY: deps | |
deps: ## Check dependencies | |
$(info Checking and getting dependencies) |
Project Concept
- Iterate cluster sizing to optimize performance and meet actual load patterns
Hardware
- Clusters with more nodes recover faster
- The higher the storage per node, the longer the recovery time
- Use commodity hardware:
- Use large slow disks (SATA) without RAID (3-6TB disks)
- Use as much RAM as is cost-effective (96-192GB RAM)
- Use mainstream CPU with as many cores as possible (8-12 cores)
curl -u admin:admin -H "X-Requested-By: ambari" -X DELETE \
http://ambari:8080/api/v1/clusters/analytics/services/STORM/components/NIMBUS
curl -u admin:admin -H "X-Requested-By: ambari" -X POST \
http://ambari:8080/api/v1/clusters/analytics/services/STORM/components/NIMBUS
This file contains hidden or 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
pvscan | |
PV /dev/nbd1 VG vol_es lvm2 [139.70 GiB / 0 free] | |
PV /dev/nbd2 VG vol_es lvm2 [139.70 GiB / 0 free] | |
PV /dev/nbd3 VG vol_es lvm2 [139.70 GiB / 0 free] | |
PV /dev/nbd4 VG vol_es lvm2 [139.70 GiB / 0 free] | |
PV /dev/nbd5 VG vol_es lvm2 [139.70 GiB / 0 free] | |
PV /dev/nbd6 VG vol_es lvm2 [139.70 GiB / 0 free] | |
Total: 6 [838.17 GiB] / in use: 6 [838.17 GiB] / in no VG: 0 [0 ] | |
NewerOlder