BufWriter<Master<'_>> – Telegram
BufWriter<Master<'_>>
105 subscribers
451 photos
28 videos
34 files
1.7K links
https://www.patreon.com/alxe_master

Видео/статьи. Конспект и мои вольные комментарии по инженерии. тут только то, что считаю полезным для себя или других =)

#os, #cloud, #rust, #golang, #python, #javaScript, #cpp, etc
Download Telegram
Tom_Wilkie_GrafanaCon_EU_2018.pdf
10.3 MB
The RED Method
Patterns for instrumentation & monitoring.

https://youtu.be/9dRSYjBPaZM

- CPU Utilisation
- CPU Saturation
- Memory Utilisation
- Memory Saturation
- CPU Errors, Memory Errors
- Hard Disk Errors!
- Disk Capacity vs Disk IO
- Network Utilisation
- Interconnects

For every service, monitor request:
• Rate - number of requests per second
• Errors - the number of those requests that are failing
• Duration - the amount of time those requests take

For each service, monitor:
• Latency - time taken to serve a request
• Traffic - how much demand is places on your system
• Errors - rate or requests that are failing
• Saturation - how “full” your services is
Forwarded from Mirror of Mind
Лайфхаки для ютуба
document.getElementsByTagName("video")[0].playbackRate = 3
простой вебсайт который помогает писать рассписания для кронтаба https://crontab.guru/
Forwarded from Linker Unsafe
Boris Usievich:
от макросов надо держаться подальше в 99% случаев

Andrey Davydov:
Спасибо за совет, но я просто держусь подальше от C++

//из @ProCxx
Forwarded from Experimental chill
Rust в ядре, и Линус кажется уже не против, починили аллокации с прошлой попытки и добавили везде try_* функции во всякие векторы

https://lore.kernel.org/lkml/20210704202756.29107-1-ojeda@kernel.org/

Мне жаль видеть, как попытки C++ в прошлом были отвергнуты, и их авторы просто не хотели и не задавались вопросом о том, как можно их починить, чтобы Линус не ворчал. Поздравляю команду Rust с большей настойчивостью и умом к подходу в популяризации своего языка. После прочтения всего треда действительно сложилось впечатление, что Rust теперь с нами надолго в приложениях, связанных с повышенным риском эксплойтов. С++ точно надо догонять хотя бы в процессах развития. Обновления раз в 3 года по сравнению с Rust выглядят по-черепашьи.

Я пописал ещё месяц на Rust, и мне зашло. Единственное, что если вы хотите реального перфа, писать на Rust становится ну ооочень некрасиво со всякими unsafe в hot spots. В любом случае, Rust это не про перф в первую очередь (может, во вторую), это я осознал очень чётко.
https://www.whonix.org/
прикольно. есть шикарный дистреб, Сноуден юзал
- генерирует новый мак адресс для всех сетевых адаптеров
- тор браузер по дефолту есть
- есть куча тулов для анонимности
- есть куча тулов для шифрования и тп

ну и есть еще круче
https://www.whonix.org/wiki/Qubes
== 5 Pytest Best Practices for Writing Great Python Tests
https://www.nerdwallet.com/blog/engineering/5-pytest-best-practices/

- USE FIXTURES !!!
- USE PARAMETRIZATION !!!

1) Prefer mocker over mock
2) Parametrize the same behavior, have different tests for different behaviors
3) Don’t modify fixture values in other fixtures
4) Prefer responses over mocking outbound HTTP requests
5) Prefer tmpdir over global test artifacts

== Some pytest best practices
https://www.back2code.me/2020/05/some-pytest-best-practices/
1) Put inputs and output in the function parameters
2) Log a message instead of commenting the function
3) Write always assertion in the same way
4) Write assertion human readable error message

== Plugin List
https://docs.pytest.org/en/latest/reference/plugin_list.html
open tracing

== https://opentracing.io/
крайне простая шляпа., по факту бенчи каждого чиха

== Take OpenTracing for a HotROD ride
https://medium.com/opentracing/take-opentracing-for-a-hotrod-ride-f6e3141f7941

== Demo of Opentracing and Jaeger
https://www.youtube.com/watch?v=EdFYvUBaKbY

== Tutorial
https://github.com/yurishkuro/opentracing-tutorial/tree/master/python
1) Lesson 01 - Hello World
Instantiate a Tracer
Create a simple trace
Annotate the trace
2) Lesson 02 - Context and Tracing Functions
Trace individual functions
Combine multiple spans into a single trace
Propagate the in-process context
3) Lesson 03 - Tracing RPC Requests
Trace a transaction across more than one microservice
Pass the context between processes using Inject and Extract
Apply OpenTracing-recommended tags
4) Lesson 04 - Baggage
Understand distributed context propagation
Use baggage to pass data through the call graph
5) Extra Credit
Use existing open source instrumentation