Giter Site home page Giter Site logo

Comments (8)

ryanemerson avatar ryanemerson commented on June 11, 2024

The chart doesn't support xsite.

It should be possible for xsite to work, however it would require the StatefulSet template to be modified to expose the required ports and additional Services to be created. More information on the configuration required can be found in our xsite guide.

I recommend that you consider using the Infinispan Operator for your k8s deployment. The operator provides xsite support OOB and is the simplest way to get started.

from infinispan-helm-charts.

ic2hrmk avatar ic2hrmk commented on June 11, 2024

Hello @ryanemerson, thank you for the clarification!

from infinispan-helm-charts.

fallen-up avatar fallen-up commented on June 11, 2024

@ryanemerson maybe you can show configuration template for jgroup and xsite in yml format?
I'm having trouble finding the right config :(

changing helm-chart is not scary, I will add the necessary ports.

from infinispan-helm-charts.

ryanemerson avatar ryanemerson commented on June 11, 2024

@fallen-up Our intention is to eventually add a dedicated helm chart for xsite deployments. @pruivo Do we have an ETA for this?

from infinispan-helm-charts.

fallen-up avatar fallen-up commented on June 11, 2024

@ryanemerson
that's great, but it's definitely gonna take some time.
I would be very grateful for an example config :)

Doesn't work:

deploy:
  infinispan:
    jgroups:
      stack:
        relay:
          xmlns: "urn:org:jgroups"
          site: NL
          max_site_masters: "1000"
        remote-sites:
          remote-site:
            - name: NL
            - name: LD
          default-stack: tcp
        name: xsite
        extends: udp
    cacheContainer:
      name: default
      transport:
        cluster: ${infinispan.cluster.name:cluster}
        node-name: ${infinispan.node.name:}
        stack: xsite

from infinispan-helm-charts.

pruivo avatar pruivo commented on June 11, 2024

No ETA since the interest in this feature is low (it is the first time I heard someone request it this year) and it is not trivial to implement. I would suggest to use the operator for this (https://infinispan.org/docs/infinispan-operator/main/operator.html#setting-up-xsite).

The main problem to solve is to make the pods accessible between clusters. The operator does that by deploying a gossip router and making it accessible to both clusters. A new JGroups stack must be created to use the TUNNEL protocol (http://jgroups.org/manual5/index.html#TUNNEL_Advanced) .

from infinispan-helm-charts.

fallen-up avatar fallen-up commented on June 11, 2024

@pruivo it's not big problem for me to link services between different k8s-clusters.
but I need help with correct config for jgroup in yml-format.

Could you provide correct format?
Or maybe some lifehack with external files? for example:

deploy:
  infinispan:
    jgroups:
      stack-file:
        name: tcp
        path: /opt/jgroups-tcp.xml

from infinispan-helm-charts.

pruivo avatar pruivo commented on June 11, 2024

we don't need to link services, pods IPs should be accessible from both clusters. If that is the case, you need a headless service which includes the IPs of all pods in both cluster and and configure DNS_PING as in https://github.com/infinispan/infinispan/blob/main/core/src/main/resources/default-configs/default-jgroups-kubernetes.xml#L28

from infinispan-helm-charts.

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.