Giter Club home page Giter Club logo

Comments (10)

cowboygneox avatar cowboygneox commented on June 30, 2024 1

Confirmed working. Awesome! Thanks!

from onpremises.

cowboygneox avatar cowboygneox commented on June 30, 2024

https://structurizr.com/help/on-premises/faq doesn't provide any additional information.

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 30, 2024

I imagine the problem is the round-robin load balancer. Short term, you'll either need to configure sticky sessions instead, or setup session replication/clustering in Apache Tomcat (assuming you're using that). Longer term, we could add a way to configure session state to be stored outside the web server (e.g. in Redis), but that's not available at the moment.

from onpremises.

cowboygneox avatar cowboygneox commented on June 30, 2024

Would it be possible to document this? My understanding of high-availability is that sessions won't be bound to single instance of the server, so I would at least state that caveat in any documentation of HA.

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 30, 2024

I've added support for storing HTTP sessions in Redis, which is available in the latest version of the on-premises installation, and this should provide a way to share session information across pods when using a round-robin load balancer. See https://structurizr.com/share/18571/documentation#http-sessions for more details.

from onpremises.

cowboygneox avatar cowboygneox commented on June 30, 2024

Excellent work! Which release is this in?

It really says a lot about your group when you can accomplish this kind of improvement. Kudos, really!

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 30, 2024

Thanks, you're welcome. 2860 onwards -> https://structurizr.com/help/changelog

from onpremises.

cowboygneox avatar cowboygneox commented on June 30, 2024

I integrated this change, but it appears that using a Redis password is mandatory. This makes local development more difficult as you have to then wire in a config into the container with a password (no easy env var). Is it possible to remove that restriction?

from onpremises.

simonbrowndotje avatar simonbrowndotje commented on June 30, 2024

Just leaving the password empty should work:

structurizr.redis.password=

from onpremises.

cowboygneox avatar cowboygneox commented on June 30, 2024

Ah I tried structurizr.redis.password="". I'll try again in a bit.

from onpremises.

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.