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
root@bazz:~# mount /dev/sda /backup/ | |
mount: you must specify the filesystem type | |
root@bazz:~# mkfs | |
mkfs mkfs.bfs mkfs.cramfs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev mkfs.fat mkfs.minix mkfs.msdos mkfs.ntfs mkfs.vfat | |
root@bazz:~# mkfs | |
mkfs mkfs.bfs mkfs.cramfs mkfs.ext2 mkfs.ext3 mkfs.ext4 mkfs.ext4dev mkfs.fat mkfs.minix mkfs.msdos mkfs.ntfs mkfs.vfat | |
root@bazz:~# mkfs.ext4 /backup/ | |
mke2fs 1.42.9 (4-Feb-2014) | |
/backup/ is not a block special device. | |
Proceed anyway? (y,n) ^C |
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
bazz@bazz ~ $ strace -c firefox 2>&1 | head -5 > file_cached_in_memory | |
bazz@bazz ~ $ cat file_cached_in_memory | |
% time seconds usecs/call calls errors syscall | |
------ ----------- ----------- --------- --------- ---------------- | |
54.42 0.023391 4 5357 poll | |
39.74 0.017079 3 5706 449 futex | |
5.07 0.002181 3 761 write | |
bazz@bazz ~ $ strace -c firefox 2>&1 | head -7 > file_cached_in_memory | |
bazz@bazz ~ $ cat file_cached_in_memory | |
% time seconds usecs/call calls errors syscall |
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
bazz@bazz-Vostro-5568 ~ $ cat err | |
echo "alias x='bash 20180630_Saturday/20180630.sh'" | |
export TIMESTAMP_LAST=`date +"%s%N"` | |
export TIMESTAMP_NOW=`date +"%s%N"` | |
time for i in {1..10}; do | |
(echo "Some test"; sleep 1) |while read -r line ; do | |
echo "I: $i" | |
TIMESTAMP_NOW=`date +"%s%N"` |
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
bazz@bazz ~ $ sudo mkdir test | |
bazz@bazz ~ $ sudo chmod 755 test | |
bazz@bazz ~ $ sudo chown root:bazz test | |
bazz@bazz ~ $ ls -ld test | |
drwxr-xr-x 2 root bazz 4096 июл 2 22:06 test | |
bazz@bazz ~ $ mkdir test/subdir | |
mkdir: невозможно создать каталог «test/subdir»: Отказано в доступе | |
bazz@bazz ~ $ touch test/file | |
touch: невозможно выполнить touch для 'test/file': Отказано в доступе | |
bazz@bazz ~ $ sudo mkdir test/subdir |
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
Vasiliy Romaneev, [28.08.18 00:36] | |
Я действительно спрашиваю - как у вас - сколько нод, какие диски, иопсы, чтение/запись и прочее. | |
Чтобы понимать на что ориентироваться. | |
Марк ☢️ Коренберг, [28.08.18 00:37] | |
без ссд получаешь около 200 иоспсов в идеале на один поток. | |
надо три реплики. с 2 — апасна | |
соответственно, верхний предел по иопсам — сумма всех иопсов всех винтов поделить на 3. | |
под журналы лучше выделять ссд — тогда всё сильно лучше становится, на пиковых нагрузках на запись особенно. | |
без 10 гбит вобще нехер рассматривать. |
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
virsh start pgstandby-preprod | |
ifconfig enp2s0f0 txqueuelen 5000 | |
ifconfig enp2s0f1 txqueuelen 5000 | |
echo 30 > /proc/sys/net/ipv4/tcp_fin_timeout | |
echo 30 > /proc/sys/net/ipv4/tcp_keepalive_intvl | |
echo 5 > /proc/sys/net/ipv4/tcp_keepalive_probes |
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
.build: &build | |
stage: build | |
script: | |
- docker-compose -f ./docker-compose.yml build | |
.deploy: &deploy | |
stage: deploy | |
script: | |
- docker-compose -f ./docker-compose.yml up -d |
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
# kubectl get secrets -n default | |
NAME TYPE DATA AGE | |
default-token-r7gnk kubernetes.io/service-account-token 3 34d | |
local-storage-admin-token-jz996 kubernetes.io/service-account-token 3 17d | |
local-storage-admin-token-ndz7d kubernetes.io/service-account-token 3 13d | |
local-storage-admin-token-ntbr2 kubernetes.io/service-account-token 3 13d | |
vault-operator-token-tkqjq kubernetes.io/service-account-token 3 7m21s | |
vault-tls Opaque 3 4m30s |
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
#curl http://localhost:8080/api/ | |
{ | |
"kind": "APIVersions", | |
"versions": [ | |
"v1" | |
], | |
"serverAddressByClientCIDRs": [ | |
{ | |
"clientCIDR": "0.0.0.0/0", | |
"serverAddress": "192.168.80.30:6443" |
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
kubectl get -o yaml endpoints | |
apiVersion: v1 | |
items: | |
- apiVersion: v1 | |
kind: Endpoints | |
metadata: | |
creationTimestamp: 2019-03-26T11:32:57Z | |
name: kubernetes | |
namespace: default | |
resourceVersion: "1468795" |
OlderNewer