elementary-rpc 2.1.1.37 → 2.1.1.39
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +8 -8
- data/README.md +2 -42
- data/spec/support/haproxy.conf +38 -0
- metadata +4 -2
checksums.yaml
CHANGED
@@ -1,15 +1,15 @@
|
|
1
1
|
---
|
2
2
|
!binary "U0hBMQ==":
|
3
3
|
metadata.gz: !binary |-
|
4
|
-
|
4
|
+
OTc3OGY5MjkxMzdhODU3MzM2NjkzOTBjZDI2MWY4ODA5YzQ1ZmYwZA==
|
5
5
|
data.tar.gz: !binary |-
|
6
|
-
|
6
|
+
OTg2MTNkMzJmZTg5M2NiZmM3ZDIwMzFlYmYzMzFlZTY4M2UwMmI0ZQ==
|
7
7
|
SHA512:
|
8
8
|
metadata.gz: !binary |-
|
9
|
-
|
10
|
-
|
11
|
-
|
9
|
+
YjFhZTBiMzhlNzFmYjJiYTdlZTQyOTI4MTcyNzk5MjlhMGNkM2U4MjljNGVh
|
10
|
+
MGNjZGU2NGJkMTE0YzQ4NWIyMWMxMzdhMzQ3MmRmYTBkMDNlMTVmN2M5YTc5
|
11
|
+
MWQwYzc2ZWEzYzM4OWQzYTBiMDk2MGJiNDg2MzM1ZTE3NjdiYmM=
|
12
12
|
data.tar.gz: !binary |-
|
13
|
-
|
14
|
-
|
15
|
-
|
13
|
+
ZmFlZDY4OGE2Njg2OWQ1NjM1YTY5NjRjZmI0ZTJmMWIyNzY4OTJjOGFiNTE4
|
14
|
+
YzVjOTg2MGU1YjE0MzAxZmMwY2VkMDBlNzhjYTM3OWEzOGEwZmY2YjVmOWY4
|
15
|
+
NTBiYTY3ODEzZDcyNGY4Y2IyYTgyNWMwZDVlYjY2ZmUyNjZiYzk=
|
data/README.md
CHANGED
@@ -109,51 +109,11 @@ Install ha-proxy for your OS
|
|
109
109
|
For Mac OSX, good reference source is:
|
110
110
|
http://nepalonrails.tumblr.com/post/9674428224/setup-haproxy-for-development-environment-on-mac
|
111
111
|
|
112
|
-
|
113
|
-
```ruby
|
114
|
-
>cat /etc/haproxy.conf
|
115
|
-
global
|
116
|
-
maxconn 4096
|
117
|
-
pidfile ~/tmp/haproxy-queue.pid
|
118
|
-
log /tmp/haproxy/log local0
|
119
|
-
log /tmp/haproxy/log local1 notice
|
120
|
-
|
121
|
-
defaults
|
122
|
-
log global
|
123
|
-
mode http
|
124
|
-
timeout connect 300000
|
125
|
-
timeout client 300000
|
126
|
-
timeout server 300000
|
127
|
-
maxconn 2000
|
128
|
-
option redispatch
|
129
|
-
retries 3
|
130
|
-
option httpclose
|
131
|
-
option httplog
|
132
|
-
option forwardfor
|
133
|
-
option httpchk HEAD / HTTP/1.0
|
134
|
-
|
135
|
-
frontend http-farm-1
|
136
|
-
bind :8080
|
137
|
-
default_backend app1latest
|
138
|
-
|
139
|
-
frontend http-farm-2
|
140
|
-
bind :8070
|
141
|
-
default_backend app2latest
|
142
|
-
|
143
|
-
backend app1latest
|
144
|
-
balance roundrobin
|
145
|
-
server localhost_8000 localhost:8000
|
146
|
-
|
147
|
-
backend app2latest
|
148
|
-
balance roundrobin
|
149
|
-
|
150
|
-
listen haproxyapp_admin:9100 127.0.0.1:9100
|
151
|
-
mode http
|
152
|
-
stats uri /
|
112
|
+
Sample ha-proxy config can be found in `spec/support/haproxy.conf`.
|
153
113
|
```
|
154
114
|
Start ha-proxy listener
|
155
115
|
|
156
|
-
haproxy -f /
|
116
|
+
haproxy -f spec/support/haproxy.conf
|
157
117
|
|
158
118
|
Start the server hosting the rpc as below:
|
159
119
|
|
@@ -0,0 +1,38 @@
|
|
1
|
+
global
|
2
|
+
maxconn 4096
|
3
|
+
pidfile ~/tmp/haproxy-queue.pid
|
4
|
+
log 127.0.0.1 local0
|
5
|
+
log 127.0.0.1 local1 notice
|
6
|
+
|
7
|
+
defaults
|
8
|
+
log global
|
9
|
+
mode http
|
10
|
+
timeout connect 300000
|
11
|
+
timeout client 300000
|
12
|
+
timeout server 300000
|
13
|
+
maxconn 2000
|
14
|
+
option redispatch
|
15
|
+
retries 3
|
16
|
+
option httpclose
|
17
|
+
option httplog
|
18
|
+
option forwardfor
|
19
|
+
option httpchk HEAD / HTTP/1.0
|
20
|
+
|
21
|
+
frontend http-farm-1
|
22
|
+
bind :8080
|
23
|
+
default_backend app1latest
|
24
|
+
|
25
|
+
frontend http-farm-2
|
26
|
+
bind :8070
|
27
|
+
default_backend app2latest
|
28
|
+
|
29
|
+
backend app1latest
|
30
|
+
balance roundrobin
|
31
|
+
server localhost_8000 localhost:8000
|
32
|
+
|
33
|
+
backend app2latest
|
34
|
+
balance roundrobin
|
35
|
+
|
36
|
+
listen haproxyapp_admin:9100 127.0.0.1:9100
|
37
|
+
mode http
|
38
|
+
stats uri /
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: elementary-rpc
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 2.1.1.
|
4
|
+
version: 2.1.1.39
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- R. Tyler Croy
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2015-
|
11
|
+
date: 2015-07-02 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: bundler
|
@@ -146,6 +146,7 @@ files:
|
|
146
146
|
- spec/support/clients/base_elementary_client.rb
|
147
147
|
- spec/support/clients/elementary_client_using_anti_pattern.rb
|
148
148
|
- spec/support/clients/sample_elementary_client.rb
|
149
|
+
- spec/support/haproxy.conf
|
149
150
|
- spec/support/proto/simpleservice.proto
|
150
151
|
- spec/support/simpleservice.pb.rb
|
151
152
|
- spec/support/simpleservice.rb
|
@@ -186,6 +187,7 @@ test_files:
|
|
186
187
|
- spec/support/clients/base_elementary_client.rb
|
187
188
|
- spec/support/clients/elementary_client_using_anti_pattern.rb
|
188
189
|
- spec/support/clients/sample_elementary_client.rb
|
190
|
+
- spec/support/haproxy.conf
|
189
191
|
- spec/support/proto/simpleservice.proto
|
190
192
|
- spec/support/simpleservice.pb.rb
|
191
193
|
- spec/support/simpleservice.rb
|