Fast cleanup of orphaned MongoDB GridFS chunks

When using gridFS, expiration time (ttl) set by client application works for documents in metadata collection but does not work in chunks collection. This results in chunks not getting cleaned up from the mongodb.

https://jira.mongodb.org/browse/SERVER-23165

Sonoff Basic R2 – making red led working

* Shine on, you, crazy diamond !

Strange, but in Sonoff Basic red led does not show relay status, as on TH10/TH16. But there is a pin labeled LED on connector for external RF module. And it lights up red led.


Autumn

не повод грустить

осень – не повод грустить.

Мур?

12036499_1013323108720694_2103937853748359270_n

Если вы слишком много работаете – заведите кота. Силой личного примера он перетянет вас на сторону истинных ценностей: отдыха и ленивого созерцания.

Evil

11401065_989747134389710_3970766535228925096_n

Многим не нравится роман “Мастер и Маргарита”, потому что здесь зло не дьявол, а люди.

PostgreSQL на XFS и ext4

Есть инстанс r3.2xlarge на амазоне. OS: Linux 3.16.0-4-amd64 #1 SMP Debian 3.16.7-ckt7-1 (2015-03-01) x86_64
на нем раздел с PostgeSQL 9.4. База достаточно нагружается каждый день. нагрузка одинаковая.
cpu-pinpoint=1426407917,1427099117

Tomcat unicast cluster configuration example

We have two Amazon EC2 instances running Apache Tomcat

Tomcat Node 1: IP: 192.168.0.50
Tomcat Node 2: IP: 192.168.0.51

Basic cluster configuration was set up from Tomcat’s documentation [http://tomcat.apache.org/tomcat-7.0-doc/cluster-howto.html] and working fine on local test environment.

But Amazon AWS doesn’t support multicast traffic and there is no documentation how to set up unicast cluster.
Here is example config of unicast cluster.