Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/riywo/sample-fluentd-on-mesos-docker
Fluentd on Mesos + Docker + Marathon
https://github.com/riywo/sample-fluentd-on-mesos-docker
Last synced: 3 months ago
JSON representation
Fluentd on Mesos + Docker + Marathon
- Host: GitHub
- URL: https://github.com/riywo/sample-fluentd-on-mesos-docker
- Owner: riywo
- Created: 2013-12-20T07:28:07.000Z (about 11 years ago)
- Default Branch: master
- Last Pushed: 2013-12-20T20:16:13.000Z (about 11 years ago)
- Last Synced: 2024-04-18T19:34:58.007Z (9 months ago)
- Language: Python
- Homepage:
- Size: 125 KB
- Stars: 54
- Watchers: 7
- Forks: 5
- Open Issues: 3
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
# Fluentd on Mesos + Docker + Marathon
This is a sample of fluentd running on mesos, docker and marathon.
## Overview
![diagram](https://cacoo.com/diagrams/9XIEXwoUNUvOOuZ2-AB7C1.png)
## Prerequire
- Vagrant 1.4.1 (I checked only this version)
- vagrant-hostmanager plugin
- [smdahlen/vagrant-hostmanager](https://github.com/smdahlen/vagrant-hostmanager)## Usage
### Startup boxes
$ git clone https://github.com/riywo/sample-fluentd-on-mesos-docker
$ cd sample-fluentd-on-mesos-docker
$ vagrant up### Make sure the /etc/hosts is recognized by dnsmasq
$ vagrant ssh mesos-master
$ sudo service lxc-net restart
$ vagrant ssh mesos-slave[12]
$ sudo service lxc-net restart### Start containers of Elasticsearch and Kibana
$ vagrant ssh mesos-master
$ sudo docker run -d -p 9200:9200 arcus/elasticsearch
$ sudo docker run -d -p 8888:80 -e ES_PORT=9200 -e ES_HOST=mesos-master arcus/kibana### Start Fluentd(td-agent) instances via Marathon
$ vagrant ssh mesos-master
$ cat /vagrant/td-agent.json | http POST http://mesos-master:8080/v1/apps/start
HTTP/1.1 204 No Content
Content-Type: application/json
Server: Jetty(8.y.z-SNAPSHOT)### Start HAProxy container
$ vagrant ssh mesos-master
$ sudo docker run -d -p 5555:8080 -e MARATHON_URL=http://mesos-master:8080 -e APP_ID=td-agent -e HEALTH_PATH=/?json=%7B%7D haproxy
### Send logs!$ vagrant ssh mesos-master
$ http POST http://mesos-master:5555/test a=1