Skip to content

Instantly share code, notes, and snippets.

@Smithx10
Smithx10 / gist:504f162778d6888bf7c284cb3986152d
Created August 29, 2017 16:13
db_prom_writer debug log
2017-08-29 16:11:06.335 [error] <0.7456.11> Ranch listener dp_prom_writer_promtest_9001_http terminated in dp_http_listener:handle/2 with reason: no function clause matching dp_prom_writer:unsnap(<<190,146,1,240,101,10,170,1,10,36,10,8,95,95,110,97,109,101,95,95,18,24,104,116,116,112,95,114,...>>) line 18
2017-08-29 16:11:06.336 [error] emulator Error in process <0.7457.11> on node 'dalmatinerpx@192.168.100.96' with exit value:
{[{reason,function_clause},{mfa,{dp_http_listener,handle,2}},{stacktrace,[{dp_prom_writer,unsnap,[<<218,163,1,240,70,10,172,1,10,57,10,8,95,95,110,97,109,101,95,95,18,45,112,114,111,109,101,116,104,101,117,115,95,108,111,99,97,108,95,115,116,111,114,97,103,101,95,105,110,100,101,120,105,110,103,95,98,97,116,99,104,95,115,105,122,101,115,10,17,10,3,106,111,98,18,10,25,54,52,10,26,10,8,105,110,115,116,97,110,99,101,18,14,5,67,84,104,111,115,116,58,57,48,57,48,10,29,10,7,109,111,110,105,116,111,114,18,18,25,51,0,45,13,20,84,10,15,10,8,113,117,97,110,116,105,108,101,18,3,48,46,53,18,16,9,1
repos =
http://pkgsrc.joyent.com/packages/SmartOS/2015Q4/x86_64/All
http://release.project-fifo.net/pkg/dev
[root@tachyon-dalmadb0 /src/ddb_proxy-dev-0.3.3-b41]# pkgin avail | grep dalm | grep pro
dalmatiner-proxy-0.2.0pre20160921043406 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.0pre20160921090358 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.0pre20160925133741 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.0pre20161006170141 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.1pre20161010184649 DalmatinerDB frontend server.
repos =
http://pkgsrc.joyent.com/packages/SmartOS/2015Q4/x86_64/All
http://release.project-fifo.net/pkg/dev
[root@tachyon-dalmadb0 /src/ddb_proxy-dev-0.3.3-b41]# pkgin avail | grep dalm | grep pro
dalmatiner-proxy-0.2.0pre20160921043406 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.0pre20160921090358 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.0pre20160925133741 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.0pre20161006170141 DalmatinerDB frontend server.
dalmatiner-proxy-0.2.1pre20161010184649 DalmatinerDB frontend server.
- job_name: 'marathon'
metrics_path: /prometheus
scrape_interval: 15s
marathon_sd_configs:
- servers:
- 'http://dcos-master-001.inst.smith.tritonhost.com:8080'
relabel_configs:
- source_labels: ['__meta_marathon_app']
target_label: 'marathon_app'
- source_labels: ['__meta_marathon_task']
global:
scrape_interval: 15s
scrape_timeout: 10s
evaluation_interval: 15s
external_labels:
monitor: prometheus-monitor
scrape_configs:
- job_name: marathon
scrape_interval: 15s
scrape_timeout: 10s
[root@headnode (bs-1) ~]# nictagadm list
NAME MACADDRESS LINK TYPE
external 00:1b:21:a3:f5:4d ixgbe1 normal
admin 00:1b:21:a3:f5:4c ixgbe0 normal
manta 00:1b:21:a3:f5:4d ixgbe1 normal
stub0 - - etherstub
[root@headnode (bs-1) ~]# ifconfig test0
test0: flags=1000842<BROADCAST,RUNNING,MULTICAST,IPv4> mtu 9000 index 5
inet 0.0.0.0 netmask 0
ether 2:8:20:c1:8d:c6
root@linuxkit-025000000001:/app# ./engine start hatchery:triton
Starting service hatchery:triton
-- Instance: slowboot
-- Instance: build_a7f4d79c-c6a0-40eb-8c0e-b8bb4cac5a03
-- Instance: fbsd-test-0
-- Instance: register-swarmy-golang-1.9.2-stretch-amazing-brahmagupta
-- Instance: frr00
-- Instance: triton-k8s-compute-3
-- Instance: proxy
-- Instance: triton-k8s-compute-2
Teams.prototype.advertiseTeam = function(name) {
setInterval(() => {
console.log('my name is: ' + name);
}, 2000);
}
Teams.prototype.updateTeam = function(name, newname, captain, available) {
assert.string(name, 'name');
assert.optionalString(newname, 'newname');
assert.optionalString(captain, 'captain');
5 recipes.prototype.getRecipe·=·function·getRecipe(name)·{§
6 ····if·(typeof this.recipe[name]·!==·'undefined')·{§
7 ········return·this.recipe[name];§
8 ····}§
9 ····else·{§
10 ········return·name·+·'·not_found';§
11 ····};§
12 }§
function
Recipes()
{
this.recipes = {};
}
Recipes.prototype.getRecipe(name) = function
getRecipe(name)
{
if (this.recipes[name] === undefined) {