Giter VIP home page Giter VIP logo

Comments (9)

jmirc avatar jmirc commented on May 11, 2024

I know Julien, this is due to a configuration issue with no xml
configuration. I will check this week how to fix it.
However, it works even if two Hazelcast are started but it is not what I
would like to have.

2013/12/11 Julien Dubois [email protected]

When you select HazelCast for Hibernate caching AND HTTP session
clustering, HazelCast gets started twice.
It even does a cluster between those two instances.
cc @jmirc https://github.com/jmirc


Reply to this email directly or view it on GitHubhttps://github.com//issues/49
.

from generator-jhipster.

jdubois avatar jdubois commented on May 11, 2024

At least it proves the cluster works :-)

from generator-jhipster.

jmirc avatar jmirc commented on May 11, 2024

Exact. And it works even if two different database are used. I love it. And
the front-end detects when the customer log-out from another session.

2013/12/11 Julien Dubois [email protected]

At least it proves the cluster works :-)


Reply to this email directly or view it on GitHubhttps://github.com//issues/49#issuecomment-30371559
.

from generator-jhipster.

jdubois avatar jdubois commented on May 11, 2024

@jmirc another thing I'm wondering:

  • Hazelcast is a bit slow to start, and having a cluster un dev mode is annoying, as your app will try to make a cluster with the other members of your team
  • So maybe we should only allow it in production ?

We could have:

  • No cache in development (which can also be a problem, as it's quite different from production)
  • Hazelcast for JPA in production by default (do we keep ehcache? it's complicated to have too many options... so I would even remove it)
  • Hazelcast for http sessions in production as an option (this is less common than the 2nd level cache)

What do you think?

from generator-jhipster.

deepu105 avatar deepu105 commented on May 11, 2024

@jdubois how did you solve the below issue? its slow to start with lot of members on LAN

"Hazelcast is a bit slow to start, and having a cluster un dev mode is annoying, as your app will try to make a cluster with the other members of your team"

from generator-jhipster.

jdubois avatar jdubois commented on May 11, 2024

We didn't solve this! We solve the "starting twice" issue, not the "slow to start" comment.
So maybe this shouldn't be enabled by default for dev mode.

from generator-jhipster.

deepu105 avatar deepu105 commented on May 11, 2024

As per there docs seems like we can define the IP for clusters rite, can we set this in the JH application property YML files? or do we have to create an XML config file?

from generator-jhipster.

jdubois avatar jdubois commented on May 11, 2024

In that case you could create your own keys in the application.yml file, indeed!

from generator-jhipster.

deepu105 avatar deepu105 commented on May 11, 2024

do I have to configure anything else or just having the keys in yml would do? couldnt find any docs on hazelcast on what keys if it needs to be on spring boot properties

from generator-jhipster.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.