Target for maximum number of vnodes
Maximum number of files
Current secure level
defmodule Transport do | |
def connect(params) do | |
hostname = params.hostname | |
port = params.port | |
path = params.path | |
timeout = params.connection_timeout | |
{:ok, conn} = :gun.open(hostname, port) | |
{:ok, :http} = :gun.await_up(conn) | |
:gun.ws_upgrade(conn, path) |
package main | |
import ( | |
"bufio" | |
"fmt" | |
"net" | |
"net/http" | |
"net/url" | |
"crypto/tls" |
-module(atkin). | |
-export([primes_smaller_than/1]). | |
primes_smaller_than(Limit) -> | |
primes_smaller_than(Limit, sieve(Limit), []). | |
primes_smaller_than(0, _, Acc) -> | |
Acc; | |
primes_smaller_than(N, Bin, Acc) -> |
Carbon relay - performance | |
alias(color(sumSeries(group(carbon.agents.*.updateOperations)), "blue"),"Updates") | |
alias(color(sumSeries(group(carbon.agents.*.metricsReceived)), "green"), "Metrics Received") | |
alias(color(sumSeries(group(carbon.agents.*.committedPoints)),"orange"),"Committed Points")) | |
alias(secondYAxis(color(sumSeries(group(carbon.agents.*.pointsPerUpdate)),"yellow")),"PPU") | |
alias(secondYAxis(color(averageSeries(group(carbon.agents.*.cpuUsage)),"red")),"CPU (avg)") | |
alias(secondYAxis(color(sumSeries(group(carbon.agents.*.creates)),"purple")),"Creates") | |
Metrics received | |
carbon.agents.*.metricsReceived |
#!/usr/bin/env escript | |
%% | |
%% | |
-mode(compile). | |
-compile(export_all). | |
main([Port]) -> | |
{ok, _} = application:ensure_all_started(ssh), |
#!/usr/bin/perl -w | |
# recover rsyslog disk queue index (.qi) from queue files (.nnnnnnnn). | |
# | |
# See: | |
# runtime/queue.c: qqueuePersist() | |
# runtime/queue.c: qqueueTryLoadPersistedInfo() | |
# | |
# kaiwang.chen@gmail.com 2012-03-14 | |
# | |
use strict; |
set background=dark | |
hi clear | |
if exists("syntax_on") | |
syntax reset | |
endif | |
let colors_name = "kraihlight" |
(streams | |
(with {:service "heartbeat" :ttl 120 } (index)) | |
(where (service "heartbeat") | |
(by :host (...)))) |