Zookeeper version: 3.4.8-1--1, built on Fri, 26 Feb 2016 14:51:43 +0100
Clients:
/10.128.0.10:23356[1](queued=0,recved=1612644,sent=1612660)
/10.128.0.9:55534[1](queued=0,recved=400,sent=400)
/10.128.0.8:25044[1](queued=0,recved=400,sent=400)
/127.0.0.1:27466[0](queued=0,recved=1,sent=0)
Latency min/avg/max: 0/0/444
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var store = require('store') | |
| var ajax = require('@subiz/ajax') | |
| var api = ajax.post() | |
| const DEAD = 'dead' | |
| const REFRESHING = 'refreshing' | |
| const NORMAL 'normal' | |
| const JUST_REFRESHED = 'just_refreshed' |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| class Channel { | |
| constructor () { | |
| this.csm = [] | |
| this.msg = [] | |
| } | |
| enqueue (data) { | |
| this.msg.push(data) | |
| this.pass() | |
| } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| var store = require('store') | |
| var ajax = require('@subiz/ajax') | |
| const DEAD = 'dead' | |
| const REFRESHING = 'refreshing' | |
| const NORMAL = 'normal' | |
| const JUST_REFRESHED = 'just_refreshed' | |
| function loop (cb) { | |
| new Promise(cb).then(cont => { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| listen 80; | |
| server_name ~^...\-app\.subiz\.net$ app.subiz.net app.subiz.com; | |
| keepalive_timeout 60; | |
| proxy_max_temp_file_size 0; | |
| access_log /var/log/nginx/dashboard_access.log main; | |
| error_log /var/log/nginx/dashboard_error.log warn; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| server { | |
| # listen 443 default_server ssl; | |
| listen 80; | |
| client_max_body_size 16M; | |
| server_name app.subiz.net; | |
| keepalive_timeout 10; | |
| proxy_max_temp_file_size 0; | |
| # ssl_certificate /ssl/subiz.net.pem; | |
| # ssl_certificate_key /ssl/subiz.net-key.pem; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # list all topic | |
| bin/kafka-topics.sh --list --zookeeper zookeeper:2181 | |
| # count topic message | |
| bin/kafka-run-class.sh kafka.tools.GetOffsetShell --broker-list localhost:9092 --topic AccountSynced2 --time -1 | |
| # alter topic config | |
| bin/kafka-topics.sh --zookeeper zookeeper:2181 --alter --topic AccountSynced2 --config cleanup.policy=compact |
OlderNewer