You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository was archived by the owner on Feb 27, 2019. It is now read-only.
Copy file name to clipboardexpand all lines: en/_posts/2016-04-20-introduction-to-docker-with-mesos-marathon.md
+5-6
Original file line number
Diff line number
Diff line change
@@ -24,25 +24,24 @@ If you want more information about the Apache Mesos architecture, please read th
24
24
25
25
##What is Marathon?
26
26
27
-
[Marathon](https://mesosphere.github.io/marathon/) is an Apache Mesos framework to run Docker containers. It provides a lot of features like framework high availibility through an active/passive system, anti-affinity constraints to ensure containers are launched on different hosts or racks, application health checks, etc. You can manage your applications and containers using a web UI, allowing you to easily launch new containers, scale your applications, and more.
27
+
[Marathon](https://mesosphere.github.io/marathon/) is an Apache Mesos framework to run long-running processes, such as Docker containers. It provides a lot of features like framework high availibility through an active/passive system, anti-affinity constraints to ensure containers are launched on different hosts or racks, application health checks, etc. You can manage your applications and containers using a web UI or an API, allowing you to easily launch new containers, scale your applications, and more.
28
28
29
29
#What do we provide?
30
30
31
-
The Docker PaaS lab is based on all these software stacks, adding some other cool stuff, like redirecting your application Logs to our PaaS Logs, and your application metrics our PaaS Timeseries.. Our lab is stack managed, it means that **we** deploy and manage your infrastructure.
31
+
The Docker PaaS lab is based on all these software stacks, adding some other cool stuff, like redirecting your application Logs to our [PaaS Logs](https://www.runabove.com/paas-logs.xml), and your application metrics the [DBaaS Time Series](https://www.ovh.com/fr/dbaas/timeseries/). Our lab is stack managed, it means that **we** deploy and manage your infrastructure.
32
32
33
33
##Your resources are dedicated
34
34
35
-
We are not providing a pool of slaves where everybody launches containers. You have **dedicated** Public Cloud instances, and dedicated resources. Your containers are running on your instances, and only yours, without noisy neighbours.
36
-
During the beta, you'll be limited to a single (and free) [VPS SSD 3](https://www.ovh.com/fr/vps/vps-ssd.xml). However, you'll be able to add more resources as we advance, not limited to the OVH cloud.
35
+
We are not providing a pool of nodes where everybody launches containers. You have **dedicated** Public Cloud instances, and dedicated resources. Your containers are running on your instances, and only yours, without noisy neighbours. You're of course free to add more resource nodes to be able to deploy more containers.
37
36
38
37
##We manage everything
39
38
40
39
We manage Mesos masters, ZooKeepers, load balancers and Mesos slaves. However, we provide you with an access to the marathon web UI and to your HAProxy load balancer stats.
41
40
42
41
##We do not only give you containers
43
-
We provide you with a full stack, integrated with the OVH ecosystem. It means that your stack is fully extensible: as the beta evolves, you'll be able to add new instances, as your needs evolve, from any kind (Public Cloud, Dedicated Server, etc).
42
+
We provide you with a full stack, integrated with the OVH ecosystem. It means that your stack is fully extensible: as the lab evolves, you'll be able to add new instances, as your needs evolve, from any kind (Public Cloud, Dedicated Server, etc).
44
43
45
-
To easily assess if you have enough resources for your running applications, we provide you with [a way to obtain metrics using the Timeseries PaaS lab](/kb/en/docker/marathon-container-metrics.html), and exploit them with Grafana dashboards.
44
+
To easily assess if you have enough resources for your running applications, we provide you with [a way to visualize your application metrics using the DBaaS Time Series](/kb/en/docker/marathon-container-metrics.html), and exploit them with Grafana dashboards.
46
45
47
46
Also, you can have access to your application logs [using the PaaS Logs lab](/kb/en/docker/marathon-container-logs.html) in Graylog.
Copy file name to clipboardexpand all lines: en/_posts/2016-04-21-quick-start-with-marathon.md
+8-5
Original file line number
Diff line number
Diff line change
@@ -6,15 +6,15 @@ author: devatoria
6
6
lang: en
7
7
---
8
8
9
-
Welcome to the quick start tutorial of the Docker PaaS lab. This document will help you launch your first application using the Marathon Web UI.
9
+
Welcome to the quick start tutorial of the Docker PaaS lab. This tutorial will help you launch your first application using the Marathon Web UI.
10
10
11
11
# First and foremost
12
12
13
13
If you haven't already read our [introduction to Docker with Mesos and Marathon](/kb/en/docker/introduction-to-docker-with-mesos-marathon.html), you should probably read it before diving in.
14
14
15
15
#Access to your Marathon Web UI
16
16
17
-
Once your Mesos slave has been installed, you'll receive an email containing the URL and credentials of your marathon.
17
+
Once your resource node has been installed, you'll receive an email containing the URL and credentials of your marathon. You can of course change this password in the [manager](https://www.ovh.com/manager/sunrise/containers/index.html#/containers).
@@ -47,7 +47,6 @@ The docker container settings allow you to use multiple docker options defined i
47
47
-**Image**: the name of the docker image, can be prefixed with the URL of the registry to use
48
48
-**Network**: the network to use *(actually, whatever you choose, the network will be defaulted to Bridged)*
49
49
-**Force Pull Image**: enable it if you want the image to be pulled everytime you launch the container, to make sure your app is always based on the ``latest`` tag.
50
-
-**Privileges**: enable this to launch your container in privileged mode *(actually automatically disabled)*
@@ -71,6 +70,10 @@ Now, your container is going to be deployed on a valid host which is able to han
71
70
72
71
# Accessing your app
73
72
74
-
You now have access to your nginx server via the URL `https://<username>.lb.sbg-1.containers.ovh.net:10080`, where `<username>` is the login you received by email (for example, `docker-abcdef-1`).
73
+
You now have access to your nginx server via the URL `https://<username>.lb.<cluster>.containers.ovh.net:10080`.
75
74
76
-
However, if you think that this URL is not elegant enough, fear not and read our [next tutorial](/kb/en/docker/marathon-load-balancer.html)!
75
+
**Note**: you can derive the value of both `username` and `cluster` from the address of your marathon web ui. For example, if your UI URL is `http://lb.sbg-1.containers.ovh.net/marathon/docker-abcdef-1/`, the value of `cluster` and `username` are respectively `sbg-1` and `docker-abcdef-1`.
76
+
77
+
# Conclusion
78
+
79
+
You now have a publicly accessible nginx, running in a Docker container. However, it's access URL is not very elegant. Fear not, and learn how to configure your load balancer by reading our [next tutorial](/kb/en/docker/marathon-load-balancer.html)!
Copy file name to clipboardexpand all lines: en/_posts/2016-04-23-marathon-health-checks.md
+3-2
Original file line number
Diff line number
Diff line change
@@ -6,12 +6,13 @@ author: devatoria
6
6
lang: en
7
7
---
8
8
9
-
Health checks are useful to ensure that your containers are running; and even better, are behaving as expected. You can add multiple health checks per application. Marathon supports both high level HTTP and lower level TCP health checks.
9
+
Health checks are useful to ensure that your containers are running; and even better, are behaving as expected. If your container is found to be unhealthy, it will be automatically redeployed. You can add multiple health checks per application. Marathon supports both high level HTTP and lower level TCP health checks.
10
+
10
11
HTTP checks allow for better, higher level checks on a specific URL like `http://localhost:port/my/health/path`. It automatically ignores informational status codes in the range 100 to 199.
11
12
12
13
# Configure a health check for a nginx application
13
14
14
-
In the [previous tutorial](/kb/en/docker/quick-start-with-marathon.html), we ran a simple nginx container. Let's now configure some HTTP health check for this application.
15
+
In one of the [previous tutorials](/kb/en/docker/quick-start-with-marathon.html), we deployed and ran a simple nginx container on Marathon. Let's now configure some HTTP health check for this application.
Copy file name to clipboardexpand all lines: en/_posts/2016-04-24-marathon-container-logs.md
+1-1
Original file line number
Diff line number
Diff line change
@@ -10,6 +10,6 @@ It may be useful to send your application logs to the [PaaS Logs RunAbove lab](h
10
10
11
11
#Inject my token into my container
12
12
13
-
To be able to push logs into the PaaS Logs platform, you have to generate a new token from the RunAbove user interface. You will find more information on the [PaaS Logs quick start guide](https://community.runabove.com/kb/en/logs/quick-start.html). Once you have your token, you must inject it into your application containers using the label `USER_THOT_TOKEN`, when creating/editing your app.
13
+
To be able to push logs into the PaaS Logs platform, you have to generate a new token from the RunAbove user interface. You will find more information on the [PaaS Logs quick start guide](https://community.runabove.com/kb/en/logs/quick-start.html). Once you have your token, you must inject it into your application containers using the label `USER_LOGS_TOKEN`, when creating/editing your app.
Copy file name to clipboardexpand all lines: en/_posts/2016-04-25-marathon-container-metrics.md
+4-4
Original file line number
Diff line number
Diff line change
@@ -1,12 +1,12 @@
1
1
---
2
2
layout: post
3
-
title: "Marathon containers metrics in PaaS Timeseries"
3
+
title: "Marathon containers metrics in DBaaS Time Series"
4
4
categories: Docker
5
5
author: devatoria
6
6
lang: en
7
7
---
8
8
9
-
We integrated the Docker PaaS with the [Timeseries PaaS lab](https://www.runabove.com/iot-paas-timeseries.xml), to allow you to graph your application metrics about your containers in a Grafana dashboard. We automatically send metrics for:
9
+
We integrated the Docker PaaS with the [DBaaS Time Series](https://www.ovh.com/fr/dbaas/timeseries/), to allow you to graph your application metrics about your containers in a Grafana dashboard. We automatically send metrics for:
10
10
11
11
- CPU usage
12
12
- memory usage
@@ -16,7 +16,7 @@ We integrated the Docker PaaS with the [Timeseries PaaS lab](https://www.runabov
16
16
17
17
#Configure your token
18
18
19
-
From the RunAbove manager, join the PaaS Timeseries lab and generate a new credentials pair (read/write). Next, inject the write credentials into your applications using `USER_IOT_ID` and `USER_IOT_KEY` labels.
19
+
From the RunAbove manager, join the DBaaS Time Series lab and generate a new credentials pair (read/write). Next, inject the write credentials into your applications using `USER_TIMESERIES_ID` and `USER_TIMESERIES_KEY` labels.
@@ -25,7 +25,7 @@ Metrics are aggregated, averaged and pushed every minute.
25
25
#Analyse my data
26
26
##Create graphs
27
27
28
-
Once your applications metrics are sent to the PaaS Timeseries, you can create some graphs to easily watch how your applications behave, and adapt your stack according to your needs. Available metrics for graphs are:
28
+
Once your applications metrics are sent to the DBaaS Time Series, you can create some graphs to easily watch how your applications behave, and adapt your stack according to your needs. Available metrics for graphs are:
Then, you can add your [PaaS Logs](https://www.runabove.com/paas-logs.xml) token and [PaaS Timeseries](https://www.runabove.com/iot-paas-timeseries.xml) token to the app labels, to [redirect your logs](https://community.runabove.com/kb/en/docker/marathon-container-logs.html)[and container metrics](https://community.runabove.com/kb/en/docker/marathon-container-metrics.html) to these infrastructures.
40
+
Then, you can add your [PaaS Logs](https://www.runabove.com/paas-logs.xml) token and [DBaaS Time Series](https://www.ovh.com/fr/dbaas/timeseries/) token to the app labels, to [redirect your logs](https://community.runabove.com/kb/en/docker/marathon-container-logs.html)[and container metrics](https://community.runabove.com/kb/en/docker/marathon-container-metrics.html) to these infrastructures.
41
41
42
42
Finally, configure a TCP health check on container port 6379. By doing so, marathon will check if a TCP connection can be established with redis, and will restart the container if that's not the case.
43
43
@@ -111,7 +111,7 @@ We define these environment variables:
We don't define any health check, as the worker does not expose any TCP nor HTTP port. As for the other applications, we can add our PaaS Logs and Timeseries tokens as labels.
114
+
We don't define any health check, as the worker does not expose any TCP nor HTTP port. As for the other applications, we can add our PaaS Logs and Time Series tokens as labels.
Copy file name to clipboardexpand all lines: en/_posts/2016-06-21-deploying-wordpress-on-marathon.md
+1-12
Original file line number
Diff line number
Diff line change
@@ -25,18 +25,7 @@ You can refer to the [PaaS DB tutorial](https://www.ovh.co.uk/g2216.getting_star
25
25
26
26
## Restrict access to the database to your container IPs
27
27
28
-
In order to make your database accessible from your containers only, you have to specify which IPs are authorised to connect to your instance. You can get your containers IP using our API. For example
**Note**: you can derive the value of both `username` and `cluster` from the address of your marathon web ui. For example, if your UI URL is `http://lb.sbg-1.containers.ovh.net/marathon/docker-abcdef-1/`, the value of `cluster` and `username` are respectively `sbg-1` and `docker-abcdef-1`. The password is the one you use to access the Marathon web UI.
28
+
In order to make your database accessible from your containers only, you have to specify which IPs are authorised to connect to your instance. You can get your containers IP in the [manager](https://www.ovh.com/manager/sunrise/containers/index.html#/containers) (a container IP is the public IP of the slave it is running on).
0 commit comments