Comments (9)
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.
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.
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.
Just added a commit for this. Please let me know how it goes.
from monstache.
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.
@cmosgh, how's this working out for you? Thanks.
from monstache.
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.
No problem. Just let me know if itβs still an issue when you get to it.
from monstache.
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)
- Obsessive-compulsive reading disorder
- golang plugin can't be mounted without building plugin from source code
- Is there a way to know lag / total pending sync
- decending sorting HOT 1
- Monstache monitoring HOT 1
- Migrating mongodb to ES, but lost _id ?
- Does each worker open a new change steam in monstache when it is running with multiple workers?
- cant build plugin for ARM64
- How to keep an embedded document in full sync?
- Docker container exits without error after 5 days despite restart=always HOT 1
- Elasticsearch 8 with PKI auth
- How to get reference field data in transform script HOT 1
- Token resume lead to Mongo HIGH CPU usage
- How can i return multiple after comparing data?
- monstache - problem reading from MongoDB secondaries.
- Add default expose port of 8080 to Dockerfile
- Add elasticsearch-healthcheck-timeout as an argument HOT 1
- Repositories/ Dockerfiles for monstache base images HOT 2
- Thnvthtt
- Document versioning fails HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
π Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
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.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google β€οΈ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from monstache.