Deploying On Pivotal Cloud Foundry

236 views
Skip to first unread message

preeta...@gmail.com

unread,
Feb 23, 2017, 6:41:19 AM2/23/17
to Hazelcast
Hello everyone ...

The "Deploying On Pivotal Cloud Foundry" section at http://docs.hazelcast.org/docs/3.7/manual/html-single/index.html mention ...

Embedded: Applications with Hazelcast embedded topology are pushed onto Cloud Foundry as individual instances. These instances discover each other using the Discovery SPI implementation. This implementation is integrated with a registration service such as Consul and Eureka.

Further it mentions ...

Integration between Hazelcast and Pivotal Cloud Foundry is provided as a Hazelcast plugin. Please see its own GitHub repo at Hazelcast Cloud Foundry for details on configurations and usages.

My question is - Since the link of https://github.com/hazelcast/hazelcast-cloudfoundry is not working where can I find official documentation for using Hazelcast as embedded node in PCF Java application  ... ?

Many Thanks !
~Preetam

Emrah Kocaman

unread,
Feb 23, 2017, 6:56:13 AM2/23/17
to haze...@googlegroups.com
Hi Preetam,

"https://github.com/hazelcast/hazelcast-cloudfoundry" was the initial implementation of Hazelcast Service Broker for CF not a plugin to be used in embedded mode.

This repo is now closed as Hazelcast is now available on Pivotal Network as a PCF Tile. You can check https://network.pivotal.io/products/hazelcast for details.

If you want to use Hazelcast embedded with your app, then there should be nothing specific to PCF. You need use an appropriate Hazelcast Discovery Plugin depending on your PCF installation environment.

Best,



--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+unsubscribe@googlegroups.com.
To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.
To view this discussion on the web visit https://groups.google.com/d/msgid/hazelcast/3b2e9f9a-7d81-4568-826b-70e9fabbaeb0%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

preeta...@gmail.com

unread,
Feb 23, 2017, 9:48:04 AM2/23/17
to Hazelcast
Hi Emrah

Thanks for this clarification.

I can see Hazecast plugin for Eureka here https://github.com/hazelcast-incubator/eurekast-one ... 

Is there any documentation around how to use that with embedded Hazelcast?

Thanks !


On Thursday, February 23, 2017 at 5:26:13 PM UTC+5:30, Emrah Kocaman wrote:
Hi Preetam,

"https://github.com/hazelcast/hazelcast-cloudfoundry" was the initial implementation of Hazelcast Service Broker for CF not a plugin to be used in embedded mode.

This repo is now closed as Hazelcast is now available on Pivotal Network as a PCF Tile. You can check https://network.pivotal.io/products/hazelcast for details.

If you want to use Hazelcast embedded with your app, then there should be nothing specific to PCF. You need use an appropriate Hazelcast Discovery Plugin depending on your PCF installation environment.

Best,


On Thu, Feb 23, 2017 at 2:41 PM, <preeta...@gmail.com> wrote:
Hello everyone ...

The "Deploying On Pivotal Cloud Foundry" section at http://docs.hazelcast.org/docs/3.7/manual/html-single/index.html mention ...

Embedded: Applications with Hazelcast embedded topology are pushed onto Cloud Foundry as individual instances. These instances discover each other using the Discovery SPI implementation. This implementation is integrated with a registration service such as Consul and Eureka.

Further it mentions ...

Integration between Hazelcast and Pivotal Cloud Foundry is provided as a Hazelcast plugin. Please see its own GitHub repo at Hazelcast Cloud Foundry for details on configurations and usages.

My question is - Since the link of https://github.com/hazelcast/hazelcast-cloudfoundry is not working where can I find official documentation for using Hazelcast as embedded node in PCF Java application  ... ?

Many Thanks !
~Preetam

--
You received this message because you are subscribed to the Google Groups "Hazelcast" group.
To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+...@googlegroups.com.

Emrah Kocaman

unread,
Feb 23, 2017, 12:44:29 PM2/23/17
to haze...@googlegroups.com
It's a community backed plugin and doesn't have a README file but it's usage should not be different than the other official or community Discovery SPI plugins. 

1) Looks like it's not published on any maven repository so you need to fork this repo and build it yourself.
2) Add the library to your projects classpath.
3) Then, use the sample hazelcast.xml for configuration

 (there is also https://github.com/hazelcast-incubator/eurekast/ for Eureka v2)

To unsubscribe from this group and stop receiving emails from it, send an email to hazelcast+unsubscribe@googlegroups.com.

To post to this group, send email to haze...@googlegroups.com.
Visit this group at https://groups.google.com/group/hazelcast.

Noctarius

unread,
Feb 23, 2017, 7:52:44 PM2/23/17
to Christoph Engelbert - Hazelcast
Hey Preetam,

Yeah as Emrah said, you just configure the Eureka discovery provider with Hazelcast but all the configuration is done in the common eureka properties configuration style, just as you would use the native client. There’s only one property which defines if the node is supposed to register itself with Eureka or not.

Chris

chefho...@gmail.com

unread,
Jan 24, 2018, 8:43:15 AM1/24/18
to Hazelcast
I'm looking into deploying a vert.x app with hazelcast embedded in a cloud foundry environment that has TCP routing but not the new PCF tile, nor Eureka. Can anybody point me to a blog entry or other example illustrating how to configure apps deployed in cloud foundry to use TCP/IP for cluster formation?

chefho...@gmail.com

unread,
Jan 24, 2018, 4:29:54 PM1/24/18
to Hazelcast
Correction/clarification: this environment also has container networking enabled (I believe), though I'm not sure whether or not it has the (experimental?) service discovery capability.

It's not clear to me yet how to populate the TCP discovery member configuration block in the hazelcast XML config, since individual app instance node names or addresses can't really be known in advance.
Message has been deleted

chefho...@gmail.com

unread,
Jan 25, 2018, 6:39:29 PM1/25/18
to Hazelcast
No suggestions?

Guglielmo Nigri

unread,
Jan 26, 2018, 2:44:07 AM1/26/18
to Hazelcast
Hello,

You could use any discovery service which is supported by Hazelcast via the Hazelcast Discovery SPI [1].

A good choice in the PCF environment is the Service Registry provided by Spring Cloud Services [2].
The Spring Cloud Service Registry is actually based on Eureka, so you could install and configure the Hazelcast Discovery SPI Plugin for Eureka [3].

Depending on your particular cloud environment or networking setup / other constraints, you may need to implement a custom DiscoveryStrategy, which is not actually difficult and documented here: [4], and you can find sample code here: [5].

Hope this helps.
Guglielmo

[5] https://github.com/hazelcast/hazelcast-code-samples/tree/master/spi/discovery


On Friday, January 26, 2018 at 2:39:29 AM UTC+3, chefho...@gmail.com wrote:
No suggestions?

chefho...@gmail.com

unread,
Jan 26, 2018, 11:39:50 AM1/26/18
to Hazelcast
Thank you for the suggestions. At the moment we don't have a Eureka backend, so I was wondering what can be done with c2c networking and the experimental app service discovery release. It seems that with those in place I should be able to use the TCP configuration, but I will look into the discovery strategy SPI and sample code you reference.

Thanks!

Reply all
Reply to author
Forward
0 new messages