- SRE Book https://sre.google/sre-book/
- SRE Workbook https://sre.google/workbook/
- Implementing Service Level Objectives, Alex Hidalgo https://www.oreilly.com/library/view/implementing-service-level/9781492076803/
- Designing Data-Intensive Applications, Martin Kleppmann https://www.oreilly.com/library/view/designing-data-intensive-applications/9781491903063/
I've been using wsl
(version 2) with genie
mod for years without issue, but one day, Windows 10 finally catch up on wsl
Windows 11 features and gives us a way to use systemD
natively.
I wanted to use the new "right way" to enable systemD
on Windows Subsystem for Linux (without genie
), and I also had a (probably related) infinite Windows RemoteApp error poping in.
- In powershell (as admin)
- Install python3, download tools: ffmpeg and N_m3u8DL-RE
- Put kdl.py, ffmpeg and N_m3u8DL-RE into same folder
- Run
python kdl.py
it will ask you to inputkinescope embed link
(e.g. https://kinescope.io/embed/1234534) andreferrer link
(e.g. https://videos.mysite.org). kinescope forbids to access without a referrer. - Wait for a download copletion.
kdl.py can automatically select the best quality of a video or you can choose it in a menu provided by N_m3u8DL-RE.
ffmpeg receives parts of the selected video and an audio and muxes them into output mp4 file.
#!/bin/bash | |
# set your AlertManager server url | |
alertmanager_url='http://localhost:9093' | |
url="$alertmanager_url/api/v1/alerts" | |
# Script will prompt you for alert params, if you hit ENTER without entering a value it uses a [default] value | |
# alert params | |
default_name="alert_$RANDOM" | |
read -p "Enter alertname [$default_name]: " alertname | |
alertname=${name:-$default_name} |
# https://1password.community/discussion/128023/ssh-agent-on-windows-subsystem-for-linux | |
# Script: Do not ask for SSH password in Git/GitLab | |
# or you will be receiving prompt or error | |
# USEAGE: adding this to your .bashrc or .zshrc, Restart the ubuntu terminal / resource the rc file (source .bashrc), Test with ssh-add -l Should see your ssh keys. | |
# Configure ssh forwarding | |
export SSH_AUTH_SOCK=$HOME/.ssh/agent.sock | |
# need `ps -ww` to get non-truncated command for matching | |
# use square brackets to generate a regex match for the process we want but that doesn't match the grep command running it! | |
ALREADY_RUNNING=$(ps -auxww | grep -q "[n]piperelay.exe -ei -s //./pipe/openssh-ssh-agent"; echo $?) | |
if [[ $ALREADY_RUNNING != "0" ]]; then |
- https://response.pagerduty.com/before/severity_levels/ - уровни серьезности инцидентов (пример)
- https://www.blameless.com/blog/severity-levels - Severity Levels (What They Are & Why They Matter)
- https://www.atlassian.com/incident-management/kpis/severity-levels - Understanding incident severity levels
- https://rootly.com/blog/practical-guide-to-sre-incident-severity-levels - руководство по составлению классификации инцидентов
- https://www.blameless.com/blog/severity-vs-priority - Severity vs. Priority | Понимание разницы
- https://www.bmc.com/blogs/impact-urgency-priority/ Матрица влияния-срочность-приоритет
- https://www.blameless.com/blog/incident-priority-matrix Incident Priority Matrix (Understanding Impact and Urgency)
- https://www.blameless.com/blog/incident-management-best-practices - Best Practices for Effective Incident Management
- A Talk between Liz Fog Jones and Google Cloud Team about defining SLI in a complex project
- https://www.honeycomb.io/build-one-simple-slo-on-demand/
- https://www.honeycomb.io/resources/the-right-slos-for-your-org-on-demand/
- WHY THE BUSINESS NEEDS SLOS https://www.honeycomb.io/why-the-business-needs-slos-on-demand/
SLI Definition Example for Web Store https://cloud.google.com/blog/products/management-tools/practical-guide-to-setting-slos
Just use https://gitflic.ru/project/dbi471/git-switch |
Some thoughts on monitoring.
Source Documents:
- https://docs.google.com/document/d/1x-frPXiGRXeJp8f-asp0LVdSoM1IAXEKSlPuYvD30fw/edit
- https://www.bigpanda.io/resource-library/monitoringscape/
- https://engineering.salesforce.com/monitoring-microservices-divide-and-conquer-acca62b209cc
- https://www.circonus.com/2018/06/comprehensive-container-based-service-monitoring-with-kubernetes-and-istio/
- https://www.vividcortex.com/blog/monitoring-and-observability-with-use-and-red
Использую сервер на Ubuntu 20.04 LTS
Тестировался на канале 100 Мбит/с (96/95 Мбит/с download/upload)
- IKEv2 IPSec сервер - download: 9-10 Мбит/с, upload 29 Мбит/с
- Outline VPN Server - download: 23-29 Мбит/с, upload 29-34 Мбит/с
- Wireguard VPN server - download: 15-20 Мбит/с, upload 27-31 Мбит/с