Skip to content

Instantly share code, notes, and snippets.

@bdharrington7
bdharrington7 / nodebb.service
Last active February 7, 2019 02:04
Service file for running NodeBB with systemd. Drop or symlink into the /etc/systemd/system/ folder. This version uses node versions provided by nvm.
[Unit]
Description=NodeBB forum for Node.js.
Documentation=http://nodebb.readthedocs.io/en/latest/
After=system.slice multi-user.target
[Service]
Type=simple
User=nodebb
StandardOutput=syslog
@bdharrington7
bdharrington7 / ES_hotthreads.txt
Created December 7, 2015 19:28
Elasticsearch hot threads format
::: [Jack Kirby][P23K8v2qRdKHpW7emPqJsg][prod-os-sjc1-1-gravityescluster-li-search-02-prod-i-00007d95][inet[/10.161.104.49:9300]]{http.enabled=true, master=false}
Hot threads at 2015-12-07T19:25:32.381Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true:
::: [Lady Jacqueline Falsworth Crichton][7KJATv7XQ260P6PRNFIfeg][prod-os-sjc1-1-gravityescluster-li-search-02-prod-i-00007d86][inet[/10.161.104.52:9300]]{http.enabled=true, data=false, master=true}
Hot threads at 2015-12-07T19:25:32.385Z, interval=500ms, busiestThreads=3, ignoreIdleThreads=true:
0.0% (142.2micros out of 500ms) cpu usage by thread 'elasticsearch[Lady Jacqueline Falsworth Crichton][transport_client_timer][T#1]{Hashed wheel timer #1}'
10/10 snapshots sharing following 5 elements
java.lang.Thread.sleep(Native Method)
org.elasticsearch.common.netty.util.HashedWheelTimer$Worker.waitForNextTick(HashedWheelTimer.java:445)