Skip to content

Instantly share code, notes, and snippets.

View pingu1m's full-sized avatar

Felipe Gusmao pingu1m

View GitHub Profile
// Please find the full, tested version in
// https://github.com/influxdata/influxdb_iox/blob/fe155e15fb2ad166aee66b0458e63c24a8128dd4/query/src/exec/task.rs#L101-L118
pub struct DedicatedExecutor {
state: Arc<Mutex<State>>,
}
/// Runs futures (and any `tasks` that are `tokio::task::spawned` by
/// them) on a separate Tokio Executor
struct State {
location {
servername test snippet.com;
}
@pingu1m
pingu1m / php-pools.md
Last active March 25, 2021 02:03 — forked from holmberd/php-pools.md
Adjusting child processes for PHP-FPM (Nginx) #infra #nginx

Adjusting child processes for PHP-FPM (Nginx)

When setting these options consider the following:

  • How long is your average request?
  • What is the maximum number of simultaneous visitors the site(s) get?
  • How much memory on average does each child process consume?

Determine if the max_children limit has been reached.

  • sudo grep max_children /var/log/php?.?-fpm.log.1 /var/log/php?.?-fpm.log
@pingu1m
pingu1m / install.sh
Created March 7, 2016 16:18
Basic ubuntu install
#! /bin/env bash
sudo apt-get update
sudo apt-get install -y tmux git curl zsh
#####################################
if [ "$1" = "ohmyzsh" ]
then
chsh -s $(which zsh)
sh -c "$(wget https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh -O -)"