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
-- MySQL dump 10.13 Distrib 5.5.37, for debian-linux-gnu (x86_64) | |
-- | |
-- Host: localhost Database: lbaasproxy | |
-- ------------------------------------------------------ | |
-- Server version 5.5.37-0+wheezy1 | |
/*!40101 SET @OLD_CHARACTER_SET_CLIENT=@@CHARACTER_SET_CLIENT */; | |
/*!40101 SET @OLD_CHARACTER_SET_RESULTS=@@CHARACTER_SET_RESULTS */; | |
/*!40101 SET @OLD_COLLATION_CONNECTION=@@COLLATION_CONNECTION */; | |
/*!40101 SET NAMES utf8 */; |
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
18:29:53.854339 IP c-69-181-157-214.hsd1.ca.comcast.net.47517 > redis-rbounds-master.6379: Flags [P.], seq 44:58, ack 6, win 229, options [nop,nop,TS val 55817520 ecr 584704], length 14 | |
18:29:53.854550 IP redis-rbounds-master.6379 > c-69-181-157-214.hsd1.ca.comcast.net.47517: Flags [P.], seq 6:13, ack 58, win 114, options [nop,nop,TS val 586713 ecr 55817520], length 7 | |
18:29:53.940521 IP c-69-181-157-214.hsd1.ca.comcast.net.47517 > redis-rbounds-master.6379: Flags [.], ack 13, win 229, options [nop,nop,TS val 55817541 ecr 586713], length 0 |
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
18:28:29.296173 IP 162.209.114.9.35284 > redis-rbounds-master.6379: Flags [S], seq 3342948565, win 14600, options [mss 1460,sackOK,TS val 3721298705 ecr 0,nop,wscale 9], length 0 | |
18:28:29.296196 IP redis-rbounds-master.6379 > 162.209.114.9.35284: Flags [S.], seq 2200831716, ack 3342948566, win 14480, options [mss 1460,sackOK,TS val 565574 ecr 3721298705,nop,wscale 7], length 0 | |
18:28:29.296554 IP 162.209.114.9.35284 > redis-rbounds-master.6379: Flags [.], ack 1, win 29, options [nop,nop,TS val 3721298705 ecr 565574], length 0 | |
... | |
18:29:01.091623 IP 162.209.114.9.35284 > redis-rbounds-master.6379: Flags [F.], seq 1, ack 1, win 29, options [nop,nop,TS val 3721306654 ecr 565574], length 0 | |
18:29:01.091811 IP redis-rbounds-master.6379 > 162.209.114.9.35284: Flags [F.], seq 1, ack 2, win 114, options [nop,nop,TS val 573522 ecr 3721306654], length 0 | |
18:29:01.092091 IP 162.209.114.9.35284 > redis-rbounds-master.6379: Flags [.], ack 2, win 29, options [nop,nop,TS val 3721306654 ecr 573522], length 0 |
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
baz@marceline:~/Downloads/redis-2.8.12$ src/redis-cli -h 23.253.146.183 -p 12811 -a "<some-master-password>" | |
23.253.146.183:12811> ping | |
Error: Server closed the connection | |
(32.70s) | |
23.253.146.183:12811> | |
baz@marceline:~/Downloads/redis-2.8.12$ src/redis-cli -h 162.242.252.124 -p 6379 -a "<some-master-password>" | |
162.242.252.124:6379> ping | |
PONG | |
162.242.252.124:6379> |
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
└─┬ [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├── [email protected] | |
├─┬ [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] | |
│ ├── [email protected] |
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
mysql> explain parent_load_balancers; | |
+------------------+---------+------+-----+---------+-------+ | |
| Field | Type | Null | Key | Default | Extra | | |
+------------------+---------+------+-----+---------+-------+ | |
| load_balancer_id | int(11) | NO | PRI | NULL | | | |
| virtual_ip_id | int(11) | NO | | NULL | | | |
+------------------+---------+------+-----+---------+-------+ | |
2 rows in set (0.00 sec) | |
child_load_balancers |
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
| load_balancer_nodes | CREATE TABLE `load_balancer_nodes` ( | |
`id` mediumint(9) NOT NULL AUTO_INCREMENT, | |
`load_balancer_id` int(11) DEFAULT NULL, | |
`parent_load_balancer_id` int(11) NOT NULL, | |
`port` int(11) NOT NULL, | |
`instance_uuid` char(36) DEFAULT NULL, | |
`datastore_type` char(16) DEFAULT NULL, | |
`private_ip` char(15) DEFAULT NULL, | |
`state` char(20) DEFAULT NULL, | |
PRIMARY KEY (`id`), |
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
LBClient.prototype._provisionChildLoadBalancer = function (state, callback) { | |
console.log("_provisionChildLoadBalancer"); | |
var client = createPkgCloudClient(); | |
var remoteLoadBalancer = { | |
name: 'dbaas-proxy-child', | |
protocol: {name:"TCP", port: state.childLoadBalancer.port}, | |
virtualIps: [{ | |
id: state.parentLoadBalancer.virtualIP | |
}], |
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
Obj.prototype.doSeries(cb) { | |
var state = {} | |
async.series([ | |
this.doA.bind(this, state), | |
this.doB.bind(this, state), | |
this.doC.bind(this, state), | |
], function(err, result) { | |
cb(err, result); | |
// do i need to state = null here? | |
// will that even help? |
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
function retryCall(numTimes, thisArg, callback) { | |
var theArgs = arguments; | |
// grab the callback function, assuming (err, data) as the callback | |
var lastArg = arguments[arguments.length-1]; | |
values = Array.prototype.slice.call(arguments, 3, arguments.length-1); | |
values.push(function(err, data) { | |
if (err) { | |
console.log("an error occurred, but trying again"); | |
console.log(err); |