Michael Hobbs
0d2e5f1a14
Merge branch 'master' into mh-ps-scale
2015-05-17 17:45:01 -07:00
Jose Diaz-Gonzalez
eac3eba50e
Merge pull request #1179 from trsc/prevent_dismissal_of_urls_in_checks_file
...
prevent dismissal of URLs in CHECKS file that contain query params
2015-05-16 14:30:21 -04:00
Vincent Fretin
2e69ff6041
wait 30 seconds and not 30 minutes
2015-05-16 18:20:50 +02:00
Andreas Follmann
6eefcbb87c
prevent dismissal of URLs in CHECKS file that contain query params
2015-05-11 15:31:28 +02:00
Michael Hobbs
3361a20a30
only check containers running proc named web for now
2015-04-21 14:33:28 -07:00
Michael Hobbs
e27d0e6fa5
wrap container id checks and reading into common function that attempts new and old style container id files
...
aggregate log streams
2015-04-21 14:32:30 -07:00
Michael Hobbs
33f872183e
initial pass at container-level scaling
2015-04-21 14:27:23 -07:00
Josh Cohen
e33d17b7dd
updated text from @savant
2015-04-18 05:38:23 +00:00
Josh Cohen
30f9ab740d
Logging info suggesting tuned CHECKS
2015-04-17 23:25:43 +00:00
Jose Diaz-Gonzalez
1a151ddabe
Merge pull request #1056 from joshco/feature/retries
...
Review: Feature/retries
2015-04-13 17:18:00 -04:00
Josh Cohen
b5eef489fd
linting fixes
2015-04-13 20:22:14 +00:00
Josh Cohen
cc565661e3
fix linting issues
...
rename UNCHECKED -> FAILEDCHECKS
2015-04-11 01:10:14 +00:00
Alexei Mikhailov
b388c2ce1e
Sourcing app-specific ENV during check-deploy, which gone missing in 052e3e88c8.
2015-04-09 18:54:08 +03:00
Josh Cohen
61270967c1
Change "RETRIES" to (MAX) "ATTEMPTS" as this better reflects behavior.
...
ATTEMPTS=0 means don't run the checks. Useful if you want to skip the checks and can be overridden by DOKKU_CHECKS_ATTEMPTS
ATTEMPTS=1 means run only once
2015-04-07 14:51:49 +00:00
Josh
48f76bcfef
Indentation
...
Indentation for new outer loop
2015-03-24 23:26:31 -04:00
Josh Cohen
3b252d43c6
Add RETRIES feature to checks.
...
The system will loop through checks RETRIES times until they succeed.
if they do not eventually succeed, it will fail the deployment
2015-03-25 03:17:44 +00:00
Michael Hobbs
77257c484f
show logs on deploy success and failure. closes #1044
2015-03-20 12:32:49 -07:00
Michael Hobbs
72c829e29b
default container check. closes #1020
2015-03-17 12:17:33 -07:00
Michael Hobbs
ee039fe4f1
lintball. disable SC1001
2015-03-16 12:43:34 -07:00
Assaf Arkin
052e3e88c8
ADDED several enhancements for CHECKS file:
...
- Specify how long to wait before running first check
- Specify timeout for each check
- Check specific hosts, e.g. http://signin.example.com
- Check both HTTP and HTTPS resources
2015-03-14 10:13:36 -07:00
Michael Hobbs
959c51eb50
refactor function defs to be posix-like. remove usage of force positional argument in tests. support --force like arguments in client"
2015-02-07 11:35:04 -08:00
Michael Hobbs
5fb30ab934
source global env prior to app env. closes #931
2015-02-03 13:47:20 -08:00
Michael Hobbs
6bb01404ec
poor lint fix choice. let's not do that.
2014-12-21 14:51:42 -08:00
Michael Hobbs
3706392e65
test with wercker
2014-12-21 14:51:40 -08:00
Jose Diaz-Gonzalez
7b361e564f
Use 2 spaces for formatting bash
...
Also remove extra trailing newlines
2014-11-16 02:58:52 -05:00
Jose Diaz-Gonzalez
f13c1031c7
Ensure there is a newline after calling set -e
2014-11-16 02:54:54 -05:00
Assaf Arkin
00ec004871
Zero down-time deploy and server checks
...
This change makes Dokku start up the new container, run a set of checks
against it, and only switch traffic over to the new containers if all
checks complete successfully. No requests are dropped during the switch
over.
To specify checks, add a CHECKS file to the root of your project
directory. This is a text file with one line per check. Empty lines and
lines starting with # are ignored.
A check is a relative URL and may be followed by expected content from
the page, for example:
/about Our Amazing Team
Even if you don’t use any checks, this change will prevent downtime
during switching from old to new container.
See: https://labnotes.org/zero-downtime-deploy-with-dokku/
2014-04-28 21:28:50 -07:00