Skip to main content


Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Archived » Gyrex » http service in gyrex cluster
http service in gyrex cluster [message #1716512] Fri, 04 December 2015 13:22 Go to next message
Sean Zhang is currently offline Sean ZhangFriend
Messages: 20
Registered: July 2015
Location: China
Junior Member

Finally, I decide to move standalone to cluster in production environment, it is more stable than standalone application.

I have done a simple test for cluster environment before deploying to production. There are two gyrex servers A (192.168.31.151) and B (192.168.31.156), and I have setup the http connectors on port 8080, and then set the tags for these two servers. A has three tags (webserver, scheduler, worker), and B has only one tag (webserver).

Then I try to access the web service through following two urls:

http://192.168.31.151:8080/service/xxx/yyy/zzz
http://192.168.31.156:8080/service/xxx/yyy/zzz

But, the first one cannot access with err connection refused, while the second one can access successfully.

Is there any mistake with my configuration?

Thanks


Study every day, and love every day!
Re: http service in gyrex cluster [message #1716528 is a reply to message #1716512] Fri, 04 December 2015 15:21 Go to previous messageGo to next message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

Hi Sean,

On 2015-12-04 13:22:53 +0000, Sean Zhang said:
> Then I try to access the web service through following two urls:
>
> http://192.168.31.151:8080/service/xxx/yyy/zzz
> http://192.168.31.156:8080/service/xxx/yyy/zzz

What's the mount url?
Are you running a ZooKeeper cluster or using one of the Gyrex nodes as
ZooKeeper?
Is the error still the same after restarting the Gyrex node?

-Gunnar


--
Gunnar Wagenknecht
gunnar@xxxxxxxx
Re: http service in gyrex cluster [message #1716577 is a reply to message #1716528] Sat, 05 December 2015 10:25 Go to previous messageGo to next message
Sean Zhang is currently offline Sean ZhangFriend
Messages: 20
Registered: July 2015
Location: China
Junior Member

Hi Gunnar,

I'm running a seperate zookeeper cluster.
Yeah, after restarting the gyrex node, everything is ok now.
Then, I reset everything and want to re-produce the problem, and then found that after setup the http service, the nodes need to be restarted.

Thank you.


Study every day, and love every day!
Re: http service in gyrex cluster [message #1719261 is a reply to message #1716577] Wed, 06 January 2016 16:21 Go to previous message
Gunnar Wagenknecht is currently offline Gunnar WagenknechtFriend
Messages: 486
Registered: July 2009
Location: San Francisco ✈ Germany
Senior Member

On 2015-12-05 10:25:52 +0000, Sean Zhang said:

> Then, I reset everything and want to re-produce the problem, and then
> found that after setup the http service, the nodes need to be restarted.

That's probably a lack of dynamics in the implementation. It's not
intended to be that way. Sometimes we just haven't had the time to
finish/polish all the dynamics. In such a case, a node restart helps.

-Gunnar


--
Gunnar Wagenknecht
gunnar@xxxxxxxx
Previous Topic:WHY ZOOKEEPER GATE IS DOWN
Next Topic:Trying to run integration tests
Goto Forum:
  


Current Time: Fri Sep 21 19:41:34 GMT 2018

Powered by FUDForum. Page generated in 0.02133 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top