Code Monkey home page Code Monkey logo

Comments (9)

rwynn avatar rwynn commented on July 18, 2024

Hi, thanks for using monstache. I'm not too familiar with kubernetes yet, but I recently added support for systemd to monstache. After you set this up you should be able to use the following command to see if monstache is alive (returns 0 if running, non-zero otherwise)

systemctl --quiet is-active monstache.service

Setting up systemd is documented at https://rwynn.github.io/monstache-site/system-d/.

The is-active command info is at https://www.freedesktop.org/software/systemd/man/systemctl.html

Please let me know if that works or if something additional is needed. I'll add the final solution to the docs.

from monstache.

cmosgh avatar cmosgh commented on July 18, 2024

So the idea in kubernetes that you'll create a Docker image and place your running service inside. In order to make sure your service is running kubernetes checks at specified intervals if the service is still up and if not stops the pod and then creates a new pod containing the service.

One way to do this is make your service respond to a simple http call with 500OK on a specified path on a specific port which kubernetes will ping at requested intervals.
With this running HA services is pretty easy since if a service stops responding it will be restarted automatically.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Thanks, that makes sense. I should have something to commit for this shortly. I'll use this as a template: https://github.com/kubernetes/kubernetes/blob/master/test/images/liveness/server.go

from monstache.

rwynn avatar rwynn commented on July 18, 2024

Just added a commit for this. Please let me know how it goes.

from monstache.

cmosgh avatar cmosgh commented on July 18, 2024

I forked it and patched a much simpler non configurable version for my needs
Will also try this commit

Also I've created a Dockerfile for a basic containerization. Not pushed yet tho. Still cluster tests are in progress.

from monstache.

rwynn avatar rwynn commented on July 18, 2024

@cmosgh, how's this working out for you? Thanks.

from monstache.

cmosgh avatar cmosgh commented on July 18, 2024

Sorry about the late reply, we had some serious issues with the cluster. Still didn't get the time to run this version.
Will get back as soon as possible

from monstache.

rwynn avatar rwynn commented on July 18, 2024

No problem. Just let me know if it’s still an issue when you get to it.

from monstache.

cmosgh avatar cmosgh commented on July 18, 2024

Hi there Ryan,

Eventually reached the point of wanting to change the version to one of yours.
The problem is that with the latest src I can't build. I keep getting
./monstache.go:575:10: unknown field 'Session' in struct literal of type monstachemap.MapperPluginInput ./monstache.go:598:13: output.Parent undefined (type *monstachemap.MapperPluginOutput has no field or method Parent) ./monstache.go:599:28: output.Parent undefined (type *monstachemap.MapperPluginOutput has no field or method Parent) ./monstache.go:601:13: output.Version undefined (type *monstachemap.MapperPluginOutput has no field or method Version) ./monstache.go:602:29: output.Version undefined (type *monstachemap.MapperPluginOutput has no field or method Version) ./monstache.go:604:13: output.VersionType undefined (type *monstachemap.MapperPluginOutput has no field or method VersionType) ./monstache.go:605:33: output.VersionType undefined (type *monstachemap.MapperPluginOutput has no field or method VersionType) ./monstache.go:607:13: output.TTL undefined (type *monstachemap.MapperPluginOutput has no field or method TTL) ./monstache.go:608:25: output.TTL undefined (type *monstachemap.MapperPluginOutput has no field or method TTL) ./monstache.go:610:13: output.Pipeline undefined (type *monstachemap.MapperPluginOutput has no field or method Pipeline) ./monstache.go:610:13: too many errors

And if I want to use the built version from Releases (linux-amd64 folder) in my docker container, I keep getting the message standard_init_linux.go:178: exec user process caused "no such file or directory"

Could it be is not a standalone app you are putting there? Maybe it needs some golang libs?

from monstache.

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.