Skip to content

Instantly share code, notes, and snippets.

View ciudilo's full-sized avatar
☺️

Kiril Piskunov ciudilo

☺️
View GitHub Profile
@ciudilo
ciudilo / kafka-service-script
Created June 18, 2019 17:10 — forked from mottyc/kafka-service-script
Kafka service script (copy to file: /etc/init.d/kafka)
#! /bin/sh
# /etc/init.d/kafka: start the kafka daemon.
# chkconfig: - 80 20
# description: kafka
KAFKA_HOME=/usr/share/kafka
KAFKA_USER=root
KAFKA_SCRIPT=$KAFKA_HOME/bin/kafka-server-start.sh
KAFKA_CONFIG=$KAFKA_HOME/config/server.properties
/*
* Auto-tuning delete that allows for removal of large amounts of data
* without impacting performance. Configurable to a target load amount.
*
* How it works:
* TL;DR: Delete a small slice every second; Vary the size of each slice
* based on how long the previous delete took; sleep; repeat.
*
* Intuition: If target is 100ms but delete took 50ms then
* we'd like to double the window size.
@ciudilo
ciudilo / mongodb_ssl_with_letsencrypt.md
Created May 13, 2016 23:15 — forked from leommoore/mongodb_ssl_with_letsencrypt.md
MongoDB 3.2.x SSL with Letsencrypt

#MongoDB 3.2.x SSL with Letsencrypt Letsencrypt is an initative which aims to increase the use of encryption for websites. It basically allows people to apply for free certificates provided that they prove the they control the requested domain. We will look at the what is needed to secure your MongoDB installation. For more details on setting up a MongoDB server see MongoDB 3.2.x.

##Set the hostname We sould to set the hostname to match the name of the certificate we are going to optain.

sudo hostname mongo0.example.com

Then update the hostname file to set the server name permanently.