Skip to content

Instantly share code, notes, and snippets.

View tyriis's full-sized avatar
🏡
Working from home

Nils Müller tyriis

🏡
Working from home
View GitHub Profile
1 NIC is running with 100Mbits only :(
```
Connecting to host 192.168.100.101, port 5201
[ 5] local 192.168.100.103 port 42392 connected to 192.168.100.101 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 11.9 MBytes 99.5 Mbits/sec 0 42.4 KBytes
[ 5] 1.00-2.00 sec 11.1 MBytes 93.3 Mbits/sec 0 45.2 KBytes
[ 5] 2.00-3.00 sec 11.2 MBytes 94.4 Mbits/sec 0 45.2 KBytes
[ 5] 3.00-4.00 sec 11.1 MBytes 93.3 Mbits/sec 0 48.1 KBytes

https://github.com/tyriis/home-ops/commit/4dc17d2ecc2e4cebeb289a4b5c4959f7a91d9f3b

bash-5.1$ rados bench -p ceph-blockpool 10 write --no-cleanup
hints = 1
Maintaining 16 concurrent writes of 4194304 bytes to objects of size 4194304 for up to 10 seconds or 0 objects
Object prefix: benchmark_data_talos01_1320
  sec Cur ops   started  finished  avg MB/s  cur MB/s last lat(s)  avg lat(s)
    0       0         0         0         0         0           -           0
    1      16        28        12   47.9938        48    0.907128    0.283249
    2      16        38        22   43.9938        40  0.00903138    0.623909

node01

TEST_FILE: /volume/test                                                                                                                                                                                                                                     
TEST_OUTPUT_PREFIX: test_device                                                                                                                                                                                                                             
TEST_SIZE: 30G                                                                                                                                                                                                                                              
Benchmarking iops.fio into test_device-iops.json                                                                                                                                                                                                            

node01 SAMSUNG 990 PRO

kbench TEST_FILE: /volume/test     
kbench TEST_OUTPUT_PREFIX: test_device                                                                                                                                                                                                                    
kbench TEST_SIZE: 30G                                                                                                                                                                                                                                       
kbench Benchmarking iops.fio into test_device-iops.json                                                                                                                                                                                                     
kbench Benchmarking bandwidth.fio into test_device-bandwidth.json                                                                                                                                  
--- node02 -> node01 ---
Connecting to host 169.254.255.101, port 5201
[ 5] local 169.254.255.102 port 55073 connected to 169.254.255.101 port 5201
[ ID] Interval Transfer Bitrate Retr Cwnd
[ 5] 0.00-1.00 sec 2.29 GBytes 19.7 Gbits/sec 1336 1.25 MBytes
[ 5] 1.00-2.00 sec 2.40 GBytes 20.6 Gbits/sec 1467 2.00 MBytes
[ 5] 2.00-3.00 sec 2.40 GBytes 20.6 Gbits/sec 1530 1.62 MBytes
[ 5] 3.00-4.00 sec 2.40 GBytes 20.6 Gbits/sec 1514 1.37 MBytes
[ 5] 4.00-5.00 sec 2.43 GBytes 20.9 Gbits/sec 1226 1.31 MBytes
- - - - - - - - - - - - - - - - - - - - - - - - -

⚠️ This gist is no longer updated! For maintained, improved and even more extended guide click here.


How to use Discord Webhook

It's a JSON

First, learn JSON. It's not programming language, not even close. Just follow syntax rules and you will be fine.

@tyriis
tyriis / esm-package.md
Created May 1, 2023 20:35 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@tyriis
tyriis / esm-package.md
Created May 1, 2023 20:35 — forked from sindresorhus/esm-package.md
Pure ESM package

Pure ESM package

The package that linked you here is now pure ESM. It cannot be require()'d from CommonJS.

This means you have the following choices:

  1. Use ESM yourself. (preferred)
    Use import foo from 'foo' instead of const foo = require('foo') to import the package. You also need to put "type": "module" in your package.json and more. Follow the below guide.
  2. If the package is used in an async context, you could use await import(…) from CommonJS instead of require(…).
  3. Stay on the existing version of the package until you can move to ESM.
@tyriis
tyriis / package.json
Last active December 13, 2022 21:39
split a yaml file into multiple ones based on the first level key
{
"name": "split-yaml",
"version": "1.0.0",
"main": "split-yaml.js",
"scripts": {
"split": "node split-yaml.js"
},
"dependencies": {
"js-yaml": "^3.14.0",
"readline": "^1.3.0"
@tyriis
tyriis / config.yaml
Last active April 22, 2021 11:50
hue scene to ha
productivity:
brightness: 100
light_color: 233
energy:
brightness: 100
light_color: 156
chill:
brightness: 57
light_color: 447
read: