Skip to content

Instantly share code, notes, and snippets.

View rendaw's full-sized avatar

rendaw

View GitHub Profile
@rendaw
rendaw / chat.md
Created June 28, 2018 12:21
Gitter chat record

On decommissioning a node (https://www.cockroachlabs.com/docs/stable/remove-nodes.html) the instructions say to check the node before commissioning: "Open the Admin UI, click Metrics on the left, select the Replication dashboard, and hover over the Replicas per Store and Leaseholders per Store graphs" but don't say what to do with that information The example scenarios linked right before that say if there aren't enough nodes then decommissioning will hang, but don't say what metric/indicators let you know if there are enough nodes to decommission My own naive guess would be replicated ranges - the docs say by default you want 3 replications of a range, but the screenshots show replicated ranges at ~70. Does this mean there's 20+ times the required capacity in that example? As a separate question, what metrics should be used to identify if a cluster should be scaled out? Data usage near max capacity? Or will replicas drop towards some critical value?

kena @knz 20:29 these are all very good questions!

rendaw

2018-03-14 20:20:00,158 DEBUG sys.argv: ['/home/###/.local/bin/trezor-gpg-agent', '-vv', '--pin-entry-binary', 'trezor-gpg-pinentry-tk'] [__init__.py:222]
2018-03-14 20:20:00,158 DEBUG os.environ: environ({'DBUS_SESSION_BUS_ADDRESS': 'unix:path=/run/user/1000/bus', 'HOME': '/home/###', 'LANG': 'en_US.UTF-8', 'LOGNAME': '###', 'MAIL': '/var/spool/mail/###', 'PATH': '/bin:/usr/bin:/usr/local/bin:/home/###/.local/bin', 'SHELL': '/bin/bash', 'USER': '###', 'XDG_RUNTIME_DIR': '/run/user/1000', 'MANAGERPID': '1148', 'LISTEN_PID': '8479', 'LISTEN_FDS': '1', 'LISTEN_FDNAMES': 'std', 'INVOCATION_ID': '506d5cf47df44ea5a612d8b0ce91b704', 'JOURNAL_STREAM': '9:128728147', 'GNUPGHOME': '/home/###/.gnupg/trezor', 'PINENTRY_TREZOR_FORCE_MESSAGE': 'Enter your Trezor PIN:', 'PINENTRY_TREZOR_LOG_PATH': '/home/###/.gnupg/trezor/pinentry.log'}) [__init__.py:223]
2018-03-14 20:20:00,158 DEBUG pid: 8479, parent pid: 1148 [__init__.py:224]
@rendaw
rendaw / preprocess.py
Last active May 27, 2021 19:56
Preprocess literalinclude in .rst files
#!/usr/bin/env python3
# AUTHOR: rendaw
# LICENSE: https://opensource.org/licenses/BSD-2-Clause
import glob
import re
import os.path
for source in glob.glob('./**/*.rst.src', recursive=True):
dirname = os.path.dirname(source)
@rendaw
rendaw / install_inscribist.wxs
Created August 30, 2013 10:20
Candle tup failure, produces install_inscribist.wixobj
<?xml version="1.0"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
<Product Id="*" UpgradeCode="628A99DD-AEE3-423E-B949-4781D97D98B5" Name="inscribist" Version="1.6.0" Manufacturer="Zarbosoft" Language="1033" Codepage="1252">
<Package InstallerVersion="200" Compressed="yes" Comments="Windows Installer Package" Languages="1033" SummaryCodepage="1252" />
<Media Id="1" Cabinet="product.cab" EmbedCab="yes" />
<Icon Id="Icon32" SourceFile="..\..\data\icon32.ico" />
<Property Id="ARPPRODUCTICON" Value="Icon32" />
<Property Id="ARPHELPLINK" Value="http://www.zarbosoft.com/inscribist" />
<Property Id="ARPURLINFOABOUT" Value="http://www.zarbosoft.com/" />