Scale microservice with Docker Swarm

At first, this article is VERY similar to this one from Alex Ellis blog and differs only with some insignificant details. Feel free to follow the link and read original one.

Here I would:

  • Bring up Docker in swarm mode using single node
  • Deploy a simple service with replication factor …
more ...

Organize backups with Restic and S3

Few days ago we set up Minio, AWS S3-compatible storage.

Let's now use another awesome utility, Restic, to make backups with snapshots and rotation.

In this example I would be using S3 storage based on minio, but it's okay to use AWS one or just a local folder. Another particularity …

more ...


The Hitchhiker’s Guide to Python

Книжка известная, называется, "The Hitchhiker’s Guide to Python", в нашем переводе "Автостопом по Python".

Как мне кажется, перевод названия удался не слишком хорошо, "автостопом по ..." перекликается с "галопом по Европам", хотя оригинальное название ближе по смыслу не к беглому осмотру, а к удобной подаче набора всех тех методик, решений …

more ...

SQL vs NoSQL + доклад Олега Бартунова

Недавно при прохождении собеседования задали вопрос: Что лучше, SQL или NoSQL?

Ответ: Ничего не лучше, это просто разные инструменты для решения разных задач.

Postgres - популярное и проверенное решение, обкатанное во многих больших компаниях (да-да, ваши резюме, балансы счетов, какие-нибудь опционы и много всего ещё лежит именно в этой БД), оно …

more ...



Gathering UPS metrics with NUT and Telegraf

I'm going to gather metrics from my UPS.

preview

Things I'm using here:

  • NUT
  • Telegraf
  • InfluxDB
  • Grafana

So, there's a program called NUT (Network UPS Tools) which let you gather data from UPS equipped with RS-232/USB data port.

In this case I'm working with IPPON Back Comfo Pro 600 via …

more ...

From Jenkins to Teamcity

Earlier I told that my Jenkins was hacked. Not sure how, but it's current Docker image is definitely vulnerable.

So I moved to TeamCity, it looked great to me since 2014 when I was working at Yandex as Linux SA.

Running server (UI and project manage data) container:

# Path to …
more ...

InfluxDB can't rename database

I got InfluxDB with a year of statistical data about how my server's lifetime goes.

For historical reasons I was using UDP protocol to store data, so there was no authorization above it. After all, it was local data transport inside my PAN. So, DB was named "udp".

Now I …

more ...

RAID levels

There was a time I was working about a month or two in a small IT company VIST SPb. During those time I wrote an article about RAID array levels. Now let me repeat it here in english just to refresh this knowledge.

So, RAID is acronym for "redundant array …

more ...

Ubuntu LTS: Use latest kernel

I was using Ubuntu 16.04 LTS with it's default 4.4 kernel and would like to test BBR congestion algorithm which available since 4.10 only.

Solution is very simple due to LTSEnablementStack/HWE feature. Can't say why, but this feature wasn't enabled at target host, probably it was …

more ...

My Jenkins was hacked

The story is about infecting poor Atom-based gateway host with mining software through Jenkins web UI.

Couple of days ago I noticed strange noise from my home gateway fans. The reason was all the 8 cores were 100% loaded with processes named irq and irqbalanc1.

First, I just checked the …

more ...