[rabbitmq-discuss] [ruby-amqp] Re: BUNNY: How can we connect to RMQ cluster
Loganathan Sellapa
loganathan.ms at gmail.com
Wed Aug 20 08:37:12 BST 2014
Hi Michael,
I have updated the bunny gem to 1.4.0(also with master branch) and then
updated the RMQ settings with two hosts h1 & h2 provided with SSL
certificates which is valid for h2 only, latter I tried to make the
connection , but getting the below error. Ideally it should work for the
second host(d1p500tlm-prxs-podrmq-a-cert.vmware.com), can you let me know
what I am doing wrong here, for your reference listed the rmq settings
*SETTING1:*
*RMQ SETTING:*
production:
<<: *defaults
rmq_settings:
host: ["D1P310TLM-PRXS-PODRMQ-A-CERT.VCHSLABS.COM", "
d1p500tlm-prxs-podrmq-a-cert.vmware.com"]
port: 5671
vhost: vchs
auth_mechanism: EXTERNAL
tls: true
tls_cert: /home/logan/git/presto/ssl/server/cert.pem
tls_key: /home/logan/git/presto/ssl/server/key.pem
tls_ca_certificates: ["/home/logan/git/presto/ssl/ca/ca-chain.pem"]
verify_peer: true
*GEMFILE*:
gem 'bunny', "1.4.0"
ERROR:
Bunny::TCPConnectionFailed: Could not establish TCP connection to ["
D1P310TLM-PRXS-PODRMQ-A-CERT.VCHSLABS.COM", "
d1p500tlm-prxs-podrmq-a-cert.vmware.com"]:5671:
*SETTING2:*
*RMQ SETTING:*
production:
<<: *defaults
rmq_settings:
host: ["D1P310TLM-PRXS-PODRMQ-A-CERT.VCHSLABS.COM", "
d1p500tlm-prxs-podrmq-a-cert.vmware.com"]
port: 5671
vhost: vchs
auth_mechanism: EXTERNAL
tls: true
tls_cert: /home/logan/git/presto/ssl/server/cert.pem
tls_key: /home/logan/git/presto/ssl/server/key.pem
tls_ca_certificates: ["/home/logan/git/presto/ssl/ca/ca-chain.pem"]
verify_peer: true
*GEMFILE:*
gem 'bunny', :git => 'https://github.com/ruby-amqp/bunny.git', branch:
"master"
ERROR:
Bunny::TCPConnectionFailed: Could not establish TCP connection to ["
D1P310TLM-PRXS-PODRMQ-A-CERT.VCHSLABS.COM", "
d1p500tlm-prxs-podrmq-a-cert.vmware.com"]:5671:
*SETTING3: (Working perfectly)*
production:
<<: *defaults
rmq_settings:
host: "d1p500tlm-prxs-podrmq-a-cert.vchslabs.vmware.com"
port: 5671
vhost: vchs
auth_mechanism: EXTERNAL
tls: true
tls_cert: /home/logan/git/presto/ssl/server/cert.pem
tls_key: /home/logan/git/presto/ssl/server/key.pem
tls_ca_certificates: ["/home/logan/git/presto/ssl/ca/ca-chain.pem"]
verify_peer: true
regards,
Loganathan
Mob: +91 7760780741 | +91 9944414388
Skype: loganathan.sellappa
ViewMe <http://vizualize.me/loganathan>
On Tue, Aug 19, 2014 at 4:19 PM, Loganathan Sellapa <loganathan.ms at gmail.com
> wrote:
> HI Michael,
>
> Thanks I will try this out.
>
> regards,
> Loganathan
> Mob: +91 7760780741 | +91 9944414388
> Skype: loganathan.sellappa
> ViewMe <http://vizualize.me/loganathan>
>
>
>
> On Tue, Aug 19, 2014 at 4:15 PM, Michael Klishin <mklishin at pivotal.io>
> wrote:
>
>>
>>
>> On 19 August 2014 at 14:38:37, Loganathan Sellappa (
>> loganathan.ms at gmail.com) wrote:
>> > > Thanks is their any patch available for this feature, or is it
>> > a good way to make connection with one node and switch to other
>> > one if we get an connection error?
>>
>> Like I said before, it is common to use a proxy in front of your cluster
>> but you can try master:
>>
>> https://github.com/ruby-amqp/bunny/pull/234/files
>>
>> https://github.com/ruby-amqp/bunny/commit/091696492de801505943a70320c338ebb63dba30
>> --
>> MK
>>
>> Staff Software Engineer, Pivotal/RabbitMQ
>>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rabbitmq.com/pipermail/rabbitmq-discuss/attachments/20140820/2842502c/attachment.html>
More information about the rabbitmq-discuss
mailing list