GithubHelp home page GithubHelp logo

Comments (5)

vladak avatar vladak commented on July 20, 2024

My wild guess: the 404 happens while Tomcat is deploying new application. I'd sugest trying to find out Tomcat specific problems as I believe this is not OpenGrok specific.

E.g. http://stackoverflow.com/questions/15772419/avoid-temporary-404-errors-during-deployment-with-tomcat

PS: greetz to fellow OpenBSD user !

from opengrok.

cnst avatar cnst commented on July 20, 2024

Wow, Google does work very nicely -- I've created that question on StackOverflow just a couple of hours ago, and here you are, already referencing it!

Someone on SO suggests that tomcat7 has a feature called Parallel Deployments, but the concept sounds sketchy, and might be incompatible with OpenGrok due to the listening TCP socket for configuration updates.

Perhaps some other servers implement this in a more robust and certain way?

from opengrok.

vladak avatar vladak commented on July 20, 2024

Time to try Weblogic or similar I guess :-)

from opengrok.

vladak avatar vladak commented on July 20, 2024

My knowledge about Java application servers is very limited but I am not sure this is actually solvable within single instance given the webapp needs to be undeployed and deployed again.

The solution might be to run 2 application servers in clustered configuration (with a smart load balancer in front of them ?) and switch whenever webapp redeploy needs to be done. The setup with 2 app servers and single indexer was recently disussed on the mailing list so more clues are there.

Thinking of this further it's not clear what is the use case. If 404 error which probably happens in very small time frame is an issue then the whole server is probably running stable version of the OS. On the instance I am taking care of we run long term support version of Solaris 11 with only occassional patching (the reboots to new boot environment are usually quick thanks to fastreboot skipping BIOS/PROM/controller setup and only switching kernels) and the same goes for OpenGrok which is running there (redeploy is relatively quick as the machine is pretty beefed up but anyway there has been only a handful of redeploys over many months).

from opengrok.

vladak avatar vladak commented on July 20, 2024

Not sure if more value can be added to this discussion; it does not seem to be OpenGrok specific. Also it duplicates the one on stackoverflow, closing.

from opengrok.

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.