You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@aurora.apache.org by ke...@apache.org on 2014/11/21 20:43:24 UTC
svn commit: r1640984 [1/2] - in /incubator/aurora/site: publish/
publish/community/ publish/developers/ publish/docs/gettingstarted/
publish/docs/howtocontribute/ publish/documentation/latest/
publish/documentation/latest/client-cluster-configuration/ ...
Author: kevints
Date: Fri Nov 21 19:43:23 2014
New Revision: 1640984
URL: http://svn.apache.org/r1640984
Log:
Fix footer.
Modified:
incubator/aurora/site/publish/community/index.html
incubator/aurora/site/publish/developers/index.html
incubator/aurora/site/publish/docs/gettingstarted/index.html
incubator/aurora/site/publish/docs/howtocontribute/index.html
incubator/aurora/site/publish/documentation/latest/client-cluster-configuration/index.html
incubator/aurora/site/publish/documentation/latest/client-commands/index.html
incubator/aurora/site/publish/documentation/latest/clientv2/index.html
incubator/aurora/site/publish/documentation/latest/committers/index.html
incubator/aurora/site/publish/documentation/latest/configuration-reference/index.html
incubator/aurora/site/publish/documentation/latest/configuration-tutorial/index.html
incubator/aurora/site/publish/documentation/latest/contributing/index.html
incubator/aurora/site/publish/documentation/latest/cron-jobs/index.html
incubator/aurora/site/publish/documentation/latest/deploying-aurora-scheduler/index.html
incubator/aurora/site/publish/documentation/latest/developing-aurora-client/index.html
incubator/aurora/site/publish/documentation/latest/developing-aurora-scheduler/index.html
incubator/aurora/site/publish/documentation/latest/hooks/index.html
incubator/aurora/site/publish/documentation/latest/index.html
incubator/aurora/site/publish/documentation/latest/monitoring/index.html
incubator/aurora/site/publish/documentation/latest/resource-isolation/index.html
incubator/aurora/site/publish/documentation/latest/scheduler-storage/index.html
incubator/aurora/site/publish/documentation/latest/sla/index.html
incubator/aurora/site/publish/documentation/latest/storage-config/index.html
incubator/aurora/site/publish/documentation/latest/storage/index.html
incubator/aurora/site/publish/documentation/latest/test-resource-generation/index.html
incubator/aurora/site/publish/documentation/latest/tutorial/index.html
incubator/aurora/site/publish/documentation/latest/user-guide/index.html
incubator/aurora/site/publish/documentation/latest/vagrant/index.html
incubator/aurora/site/publish/downloads/index.html
incubator/aurora/site/publish/index.html
incubator/aurora/site/source/_footer.md.erb
incubator/aurora/site/source/documentation/latest/client-commands.md
Modified: incubator/aurora/site/publish/community/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/community/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/community/index.html (original)
+++ incubator/aurora/site/publish/community/index.html Fri Nov 21 19:43:23 2014
@@ -124,7 +124,7 @@
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/developers/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/developers/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/developers/index.html (original)
+++ incubator/aurora/site/publish/developers/index.html Fri Nov 21 19:43:23 2014
@@ -104,7 +104,7 @@
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/docs/gettingstarted/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/docs/gettingstarted/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/docs/gettingstarted/index.html (original)
+++ incubator/aurora/site/publish/docs/gettingstarted/index.html Fri Nov 21 19:43:23 2014
@@ -93,7 +93,7 @@
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/docs/howtocontribute/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/docs/howtocontribute/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/docs/howtocontribute/index.html (original)
+++ incubator/aurora/site/publish/docs/howtocontribute/index.html Fri Nov 21 19:43:23 2014
@@ -135,7 +135,7 @@ git push origin master
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/client-cluster-configuration/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/client-cluster-configuration/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/client-cluster-configuration/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/client-cluster-configuration/index.html Fri Nov 21 19:43:23 2014
@@ -203,7 +203,7 @@ to Aurora which will allow for more robu
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/client-commands/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/client-commands/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/client-commands/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/client-commands/index.html Fri Nov 21 19:43:23 2014
@@ -84,7 +84,11 @@ reflection.</p>
<li><a href="#creating-and-running-a-job">Creating and Running a Job</a></li>
<li><a href="#running-a-command-on-a-running-job">Running a Command On a Running Job</a></li>
<li><a href="#killing-a-job">Killing a Job</a></li>
-<li><a href="#updating-a-job">Updating a Job</a></li>
+<li><a href="#updating-a-job">Updating a Job</a>
+
+<ul>
+<li><a href="#user-content-asynchronous-job-updates-beta">Asynchronous job updates (beta)</a></li>
+</ul></li>
<li><a href="#renaming-a-job">Renaming a Job</a></li>
<li><a href="#restarting-jobs">Restarting Jobs</a></li>
</ul></li>
@@ -313,6 +317,35 @@ Defaults to <code>False</code>.</li>
Time interval between subsequent shard status checks. Defaults to <code>3</code>.</li>
</ul>
+<h4 id="asynchronous-job-updates-(beta)">Asynchronous job updates (beta)</h4>
+
+<p>As of 0.6.0, Aurora will coordinate updates (and rollbacks) within the
+scheduler. Performing updates this way also allows the scheduler to display
+update progress and job update history in the browser.</p>
+
+<p>There are several sub-commands to manage job updates:</p>
+<pre class="highlight text">aurora2 beta-update start <job key> <configuration file
+aurora2 beta-update status <job key>
+aurora2 beta-update pause <job key>
+aurora2 beta-update resume <job key>
+aurora2 beta-update abort <job key>
+aurora2 beta-update list <cluster>
+</pre>
+<p>When you <code>start</code> a job update, the command will return once it has sent the
+instructions to the scheduler. At that point, you may view detailed
+progress for the update with the <code>status</code> subcommand, in addition to viewing
+graphical progress in the web browser. You may also get a full listing of
+in-progress updates in a cluster with <code>list</code>.</p>
+
+<p>Once an update has been started, you can <code>pause</code> to keep the update but halt
+progress. This can be useful for doing things like debug a partially-updated
+job to determine whether you would like to proceed. You can <code>resume</code> to
+proceed.</p>
+
+<p>You may <code>abort</code> a job update regardless of the state it is in. This will
+instruct the scheduler to completely abandon the job update and leave the job
+in the current (possibly partially-updated) state.</p>
+
<h3 id="renaming-a-job">Renaming a Job</h3>
<p>Renaming is a tricky operation as downstream clients must be informed of
@@ -541,7 +574,7 @@ assigned to this machine</li>
<p>For example, the following type of pattern can be a powerful diagnostic
tool:</p>
<pre class="highlight text">aurora run -t5 cluster1/tyg/devel/seizure -- \
- 'curl -s -m1 localhost:{{thermos.ports[http]}}/vars | grep uptime'
+ 'curl -s -m1 localhost:{{thermos.ports[http]}}/vars | grep uptime'
</pre>
<p>By default, the command runs in the Task’s sandbox. The <code>-e</code> option can
run the command in the executor’s sandbox. This is mostly useful for
@@ -573,7 +606,7 @@ Aurora administrators.</p>
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/clientv2/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/clientv2/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/clientv2/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/clientv2/index.html Fri Nov 21 19:43:23 2014
@@ -510,7 +510,7 @@ which can be found in <code>src/main/pyt
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/committers/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/committers/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/committers/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/committers/index.html Fri Nov 21 19:43:23 2014
@@ -161,7 +161,7 @@ all binding votes and send the [RESULT][
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/configuration-reference/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/configuration-reference/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/configuration-reference/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/configuration-reference/index.html Fri Nov 21 19:43:23 2014
@@ -392,7 +392,7 @@ upon one final Process (“reducer&r
<pre class="highlight text">def make_mapper(id):
return Process(
name = "mapper%03d" % id,
- cmdline = "echo 'scale=50;s(%d\*4\*a(1)/180)' | bc -l >
+ cmdline = "echo 'scale=50;s(%d\*4\*a(1)/180)' | bc -l >
temp.sine_table.%03d" % (id, id))
def make_reducer():
@@ -404,7 +404,7 @@ processes = map(make_mapper, range(180))
task = Task(
name = "mapreduce",
processes = processes + [make\_reducer()],
- constraints = [Constraint(order = [mapper.name(), 'reducer']) for mapper
+ constraints = [Constraint(order = [mapper.name(), 'reducer']) for mapper
in processes],
max_concurrency = 8)
</pre>
@@ -746,13 +746,13 @@ constraints</em>.</p>
constraint ensures that no more than two instances of your job may run
on a single host. Think of this as a “group by” limit.</p>
<pre class="highlight text">constraints = {
- 'host': 'limit:2',
+ 'host': 'limit:2',
}
</pre>
<p>Likewise, you can use constraints to control rack diversity, e.g. at
most one task per rack:</p>
<pre class="highlight text">constraints = {
- 'rack': 'limit:1',
+ 'rack': 'limit:1',
}
</pre>
<p>Use these constraints sparingly as they can dramatically reduce Tasks' schedulability.</p>
@@ -826,15 +826,15 @@ to map <code>http</code> to port 12345 w
<p>Put the following in a file named <code>hello_world.aurora</code>, substituting your own values
for values such as <code>cluster</code>s.</p>
<pre class="highlight text">import os
-hello_world_process = Process(name = 'hello_world', cmdline = 'echo hello world')
+hello_world_process = Process(name = 'hello_world', cmdline = 'echo hello world')
hello_world_task = Task(
resources = Resources(cpu = 0.1, ram = 16 * MB, disk = 16 * MB),
processes = [hello_world_process])
hello_world_job = Job(
- cluster = 'cluster1',
- role = os.getenv('USER'),
+ cluster = 'cluster1',
+ role = os.getenv('USER'),
task = hello_world_task)
jobs = [hello_world_job]
@@ -850,7 +850,7 @@ aurora kill cluster1/$USER/test/hello_wo
<p>Put the following in a file named <code>hello_world_productionized.aurora</code>, substituting your own values
for values such as <code>cluster</code>s.</p>
-<pre class="highlight text">include('hello_world.aurora')
+<pre class="highlight text">include('hello_world.aurora')
production_resources = Resources(cpu = 1.0, ram = 512 * MB, disk = 2 * GB)
staging_resources = Resources(cpu = 0.1, ram = 32 * MB, disk = 512 * MB)
@@ -860,12 +860,12 @@ hello_world_template = hello_world(
jobs = [
# production jobs
- hello_world_template(cluster = 'cluster1', instances = 25),
- hello_world_template(cluster = 'cluster2', instances = 15),
+ hello_world_template(cluster = 'cluster1', instances = 25),
+ hello_world_template(cluster = 'cluster2', instances = 15),
# staging jobs
hello_world_template(
- cluster = 'local',
+ cluster = 'local',
instances = 1,
task = hello_world(resources=staging_resources)),
]
@@ -899,7 +899,7 @@ aurora kill cluster1/$USER/test/hello_wo
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/configuration-tutorial/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/configuration-tutorial/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/configuration-tutorial/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/configuration-tutorial/index.html Fri Nov 21 19:43:23 2014
@@ -211,30 +211,30 @@ curly braces {{}} are template variables
bound values for the variables.</p>
<pre class="highlight text"># --- templates here ---
class Profile(Struct):
- package_version = Default(String, 'live')
- java_binary = Default(String, '/usr/lib/jvm/java-1.7.0-openjdk/bin/java')
- extra_jvm_options = Default(String, '')
- parent_environment = Default(String, 'prod')
+ package_version = Default(String, 'live')
+ java_binary = Default(String, '/usr/lib/jvm/java-1.7.0-openjdk/bin/java')
+ extra_jvm_options = Default(String, '')
+ parent_environment = Default(String, 'prod')
parent_serverset = Default(String,
- '/foocorp/service/bird/{{parent_environment}}/bird')
+ '/foocorp/service/bird/{{parent_environment}}/bird')
# --- processes here ---
main = Process(
- name = 'application',
- cmdline = '{{profile.java_binary}} -server -Xmx1792m '
- '{{profile.extra_jvm_options}} '
- '-jar application.jar '
- '-upstreamService {{profile.parent_serverset}}'
+ name = 'application',
+ cmdline = '{{profile.java_binary}} -server -Xmx1792m '
+ '{{profile.extra_jvm_options}} '
+ '-jar application.jar '
+ '-upstreamService {{profile.parent_serverset}}'
)
# --- tasks ---
base_task = SequentialTask(
- name = 'application',
+ name = 'application',
processes = [
Process(
- name = 'fetch',
- cmdline = 'curl -O
- https://packages.foocorp.com/{{profile.package_version}}/application.jar'),
+ name = 'fetch',
+ cmdline = 'curl -O
+ https://packages.foocorp.com/{{profile.package_version}}/application.jar'),
]
)
@@ -251,9 +251,9 @@ production_task = base_task(resources =
# --- job template ---
job_template = Job(
- name = 'application',
- role = 'myteam',
- contact = 'myteam-team@foocorp.com',
+ name = 'application',
+ role = 'myteam',
+ contact = 'myteam-team@foocorp.com',
instances = 20,
service = True,
task = production_task
@@ -262,20 +262,20 @@ job_template = Job(
# -- profile instantiations (if any) ---
PRODUCTION = Profile()
STAGING = Profile(
- extra_jvm_options = '-Xloggc:gc.log',
- parent_environment = 'staging'
+ extra_jvm_options = '-Xloggc:gc.log',
+ parent_environment = 'staging'
)
# -- job instantiations --
jobs = [
- job_template(cluster = 'cluster1', environment = 'prod')
+ job_template(cluster = 'cluster1', environment = 'prod')
.bind(profile = PRODUCTION),
- job_template(cluster = 'cluster2', environment = 'prod')
+ job_template(cluster = 'cluster2', environment = 'prod')
.bind(profile = PRODUCTION),
- job_template(cluster = 'cluster1',
- environment = 'staging',
+ job_template(cluster = 'cluster1',
+ environment = 'staging',
service = False,
task = staging_task,
instances = 2)
@@ -302,20 +302,20 @@ so <code>$*</code> is unspecified.</li>
<p>Many tiny processes make managing configurations more difficult. For
example, the following is a bad way to define processes.</p>
<pre class="highlight text">copy = Process(
- name = 'copy',
- cmdline = 'curl -O https://packages.foocorp.com/app.zip'
+ name = 'copy',
+ cmdline = 'curl -O https://packages.foocorp.com/app.zip'
)
unpack = Process(
- name = 'unpack',
- cmdline = 'unzip app.zip'
+ name = 'unpack',
+ cmdline = 'unzip app.zip'
)
remove = Process(
- name = 'remove',
- cmdline = 'rm -f app.zip'
+ name = 'remove',
+ cmdline = 'rm -f app.zip'
)
run = Process(
- name = 'app',
- cmdline = 'java -jar app.jar'
+ name = 'app',
+ cmdline = 'java -jar app.jar'
)
run_task = Task(
processes = [copy, unpack, remove, run],
@@ -330,11 +330,11 @@ particular order, use <code>SequentialTa
<code>Task</code> <em>Objects</em></a> section. The following simplifies and combines the
above multiple <code>Process</code> definitions into just two.</p>
<pre class="highlight text">stage = Process(
- name = 'stage',
- cmdline = 'curl -O https://packages.foocorp.com/app.zip && '
- 'unzip app.zip && rm -f app.zip')
+ name = 'stage',
+ cmdline = 'curl -O https://packages.foocorp.com/app.zip && '
+ 'unzip app.zip && rm -f app.zip')
-run = Process(name = 'app', cmdline = 'java -jar app.jar')
+run = Process(name = 'app', cmdline = 'java -jar app.jar')
run_task = SequentialTask(processes = [stage, run])
</pre>
@@ -406,8 +406,8 @@ on an accessible HDFS cluster or similar
<p>The template for this Process is:</p>
<pre class="highlight text"><name> = Process(
- name = '<name>'
- cmdline = '<command to copy and extract code archive into current working directory>'
+ name = '<name>'
+ cmdline = '<command to copy and extract code archive into current working directory>'
)
</pre>
<p>Note: Be sure the extracted code archive has an executable.</p>
@@ -451,7 +451,7 @@ the processes run in parallel or sequent
Task’s processes. Currently there is only one type, the <code>order</code>
constraint. For example the following requires that the processes
run in the order <code>foo</code>, then <code>bar</code>.</p>
-<pre class="highlight text">constraints = [Constraint(order=['foo', 'bar'])]
+<pre class="highlight text">constraints = [Constraint(order=['foo', 'bar'])]
</pre>
<p>There is an <code>order()</code> function that takes <code>order('foo', 'bar', 'baz')</code>
and converts it into <code>[Constraint(order=['foo', 'bar', 'baz'])]</code>.
@@ -533,7 +533,7 @@ file:</p>
<pre class="highlight text">import os
hello_world_job = Job(
task=SimpleTask(name="hello_world", command="echo hello world"),
- role=os.getenv('USER'),
+ role=os.getenv('USER'),
cluster="cluster1")
</pre>
<p>When written to <code>hello_world.aurora</code>, you invoke it with a simple
@@ -639,8 +639,8 @@ only run the Job whose job key includes
<p>You usually see a <code>name</code> parameter. By default, <code>name</code> inherits its
value from the Job’s associated Task object, but you can override this
default. For these four parameters, a Job definition might look like:</p>
-<pre class="highlight text">foo_job = Job( name = 'foo', cluster = 'cluster1',
- role = os.getenv('USER'), environment = 'prod',
+<pre class="highlight text">foo_job = Job( name = 'foo', cluster = 'cluster1',
+ role = os.getenv('USER'), environment = 'prod',
task = foo_task)
</pre>
<p>In addition to the required attributes, there are several optional
@@ -810,16 +810,16 @@ differently:</p>
<pre class="highlight text">>>> Float(1.5)
Float(1.5)
->>> Float('{{x}}.5')
+>>> Float('{{x}}.5')
Float({{x}}.5)
->>> Float('{{x}}.5').bind(x = 1)
+>>> Float('{{x}}.5').bind(x = 1)
Float(1.5)
->>> Float('{{x}}.5').bind(x = 1) == Float(1.5)
+>>> Float('{{x}}.5').bind(x = 1) == Float(1.5)
True
->>> contextual_object = String('{{metavar{{number}}}}').bind(
+>>> contextual_object = String('{{metavar{{number}}}}').bind(
... metavar1 = "first", metavar2 = "second")
>>> contextual_object
@@ -861,20 +861,20 @@ Process(daemon=False, max_failures=1, ep
</pre>
<p>Attribute values can be template variables, which then receive specific
values when creating the object.</p>
-<pre class="highlight text">>>> Process(cmdline = 'echo {{message}}')
+<pre class="highlight text">>>> Process(cmdline = 'echo {{message}}')
Process(daemon=False, max_failures=1, ephemeral=False, min_duration=5,
cmdline=echo {{message}}, final=False)
->>> Process(cmdline = 'echo {{message}}').bind(message = 'hello world')
+>>> Process(cmdline = 'echo {{message}}').bind(message = 'hello world')
Process(daemon=False, max_failures=1, ephemeral=False, min_duration=5,
cmdline=echo hello world, final=False)
</pre>
<p>A powerful binding property is that all of an object’s children inherit its
bindings:</p>
<pre class="highlight text">>>> List(Process)([
-... Process(name = '{{prefix}}_one'),
-... Process(name = '{{prefix}}_two')
-... ]).bind(prefix = 'hello')
+... Process(name = '{{prefix}}_one'),
+... Process(name = '{{prefix}}_two')
+... ]).bind(prefix = 'hello')
ProcessList(
Process(daemon=False, name=hello_one, max_failures=1, ephemeral=False, min_duration=5, final=False),
Process(daemon=False, name=hello_two, max_failures=1, ephemeral=False, min_duration=5, final=False)
@@ -910,7 +910,7 @@ Process(daemon=False, max_failures=1, ep
</pre>
<p>The following is also not possible and results in an infinite loop that
attempts to resolve <code>Process.name</code>.</p>
-<pre class="highlight text">>>> Process(name = '{{name}}').bind(name = 'installer')
+<pre class="highlight text">>>> Process(name = '{{name}}').bind(name = 'installer')
</pre>
<p>Do not confuse Structural attributes with bound Mustache variables.
Attributes are implicitly converted to Mustache variables but not vice
@@ -941,8 +941,8 @@ Process(daemon=False, name=process_two,
</pre>
<p>Template creation is a common use for this technique:</p>
<pre class="highlight text">>>> Daemon = Process(daemon = True)
->>> logrotate = Daemon(name = 'logrotate', cmdline = './logrotate conf/logrotate.conf')
->>> mysql = Daemon(name = 'mysql', cmdline = 'bin/mysqld --safe-mode')
+>>> logrotate = Daemon(name = 'logrotate', cmdline = './logrotate conf/logrotate.conf')
+>>> mysql = Daemon(name = 'mysql', cmdline = 'bin/mysqld --safe-mode')
</pre>
<h3 id="advanced-binding">Advanced Binding</h3>
@@ -957,13 +957,13 @@ can also be bound via <code>.bind()</cod
interchangeably (when “<code>kwargs</code>” is in a function definition, <code>kwargs</code>
receives a Python dictionary containing all keyword arguments after the
formal parameter list).</p>
-<pre class="highlight text">>>> String('{{foo}}').bind(foo = 'bar') == String('{{foo}}').bind({'foo': 'bar'})
+<pre class="highlight text">>>> String('{{foo}}').bind(foo = 'bar') == String('{{foo}}').bind({'foo': 'bar'})
True
</pre>
<p>Bindings done “closer” to the object in question take precedence:</p>
-<pre class="highlight text">>>> p = Process(name = '{{context}}_process')
->>> t = Task().bind(context = 'global')
->>> t(processes = [p, p.bind(context = 'local')])
+<pre class="highlight text">>>> p = Process(name = '{{context}}_process')
+>>> t = Task().bind(context = 'global')
+>>> t(processes = [p, p.bind(context = 'local')])
Task(processes=ProcessList(
Process(daemon=False, name=global_process, max_failures=1, ephemeral=False, final=False,
min_duration=5),
@@ -975,16 +975,16 @@ Task(processes=ProcessList(
<h5 id="lists">Lists</h5>
<pre class="highlight text">>>> fibonacci = List(Integer)([1, 1, 2, 3, 5, 8, 13])
->>> String('{{fib[4]}}').bind(fib = fibonacci)
+>>> String('{{fib[4]}}').bind(fib = fibonacci)
String(5)
</pre>
<h5 id="maps">Maps</h5>
-<pre class="highlight text">>>> first_names = Map(String, String)({'Kent': 'Clark', 'Wayne': 'Bruce', 'Prince': 'Diana'})
->>> String('{{first[Kent]}}').bind(first = first_names)
+<pre class="highlight text">>>> first_names = Map(String, String)({'Kent': 'Clark', 'Wayne': 'Bruce', 'Prince': 'Diana'})
+>>> String('{{first[Kent]}}').bind(first = first_names)
String(Clark)
</pre>
<h5 id="structurals">Structurals</h5>
-<pre class="highlight text">>>> String('{{p.cmdline}}').bind(p = Process(cmdline = "echo hello world"))
+<pre class="highlight text">>>> String('{{p.cmdline}}').bind(p = Process(cmdline = "echo hello world"))
String(echo hello world)
</pre>
<h3 id="structural-binding">Structural Binding</h3>
@@ -1002,25 +1002,25 @@ or change the way the dataset is designa
<pre class="highlight text">class Profile(Struct):
version = Required(String)
environment = Required(String)
- dataset = Default(String, hdfs://home/aurora/data/{{environment}}')
+ dataset = Default(String, hdfs://home/aurora/data/{{environment}}')
-PRODUCTION = Profile(version = 'live', environment = 'prod')
-DEVEL = Profile(version = 'latest',
- environment = 'devel',
- dataset = 'hdfs://home/aurora/data/test')
-TEST = Profile(version = 'latest', environment = 'test')
+PRODUCTION = Profile(version = 'live', environment = 'prod')
+DEVEL = Profile(version = 'latest',
+ environment = 'devel',
+ dataset = 'hdfs://home/aurora/data/test')
+TEST = Profile(version = 'latest', environment = 'test')
JOB_TEMPLATE = Job(
- name = 'application',
- role = 'myteam',
- cluster = 'cluster1',
- environment = '{{profile.environment}}',
+ name = 'application',
+ role = 'myteam',
+ cluster = 'cluster1',
+ environment = '{{profile.environment}}',
task = SequentialTask(
- name = 'task',
+ name = 'task',
resources = Resources(cpu = 2, ram = 4*GB, disk = 8*GB),
processes = [
- Process(name = 'main', cmdline = 'java -jar application.jar -hdfsPath
- {{profile.dataset}}')
+ Process(name = 'main', cmdline = 'java -jar application.jar -hdfsPath
+ {{profile.dataset}}')
]
)
)
@@ -1061,32 +1061,32 @@ example below:</p>
<p><code>redundant.aurora</code> contains:</p>
<pre class="highlight text">download = Process(
- name = 'download',
- cmdline = 'wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2',
+ name = 'download',
+ cmdline = 'wget http://www.python.org/ftp/python/2.7.3/Python-2.7.3.tar.bz2',
max_failures = 5,
min_duration = 1)
unpack = Process(
- name = 'unpack',
- cmdline = 'rm -rf Python-2.7.3 && tar xzf Python-2.7.3.tar.bz2',
+ name = 'unpack',
+ cmdline = 'rm -rf Python-2.7.3 && tar xzf Python-2.7.3.tar.bz2',
max_failures = 5,
min_duration = 1)
build = Process(
- name = 'build',
- cmdline = 'pushd Python-2.7.3 && ./configure && make && popd',
+ name = 'build',
+ cmdline = 'pushd Python-2.7.3 && ./configure && make && popd',
max_failures = 1)
email = Process(
- name = 'email',
- cmdline = 'echo Success | mail feynman@tmc.com',
+ name = 'email',
+ cmdline = 'echo Success | mail feynman@tmc.com',
max_failures = 5,
min_duration = 1)
build_python = Task(
- name = 'build_python',
+ name = 'build_python',
processes = [download, unpack, build, email],
- constraints = [Constraint(order = ['download', 'unpack', 'build', 'email'])])
+ constraints = [Constraint(order = ['download', 'unpack', 'build', 'email'])])
</pre>
<p>As you’ll notice, there’s a lot of repetition in the <code>Process</code>
definitions. For example, almost every process sets a <code>max_failures</code>
@@ -1100,32 +1100,32 @@ section.</p>
<p><code>less_redundant.aurora</code> contains:</p>
<pre class="highlight text">class Python(Struct):
version = Required(String)
- base = Default(String, 'Python-{{version}}')
- package = Default(String, '{{base}}.tar.bz2')
+ base = Default(String, 'Python-{{version}}')
+ package = Default(String, '{{base}}.tar.bz2')
ReliableProcess = Process(
max_failures = 5,
min_duration = 1)
download = ReliableProcess(
- name = 'download',
- cmdline = 'wget http://www.python.org/ftp/python/{{python.version}}/{{python.package}}')
+ name = 'download',
+ cmdline = 'wget http://www.python.org/ftp/python/{{python.version}}/{{python.package}}')
unpack = ReliableProcess(
- name = 'unpack',
- cmdline = 'rm -rf {{python.base}} && tar xzf {{python.package}}')
+ name = 'unpack',
+ cmdline = 'rm -rf {{python.base}} && tar xzf {{python.package}}')
build = ReliableProcess(
- name = 'build',
- cmdline = 'pushd {{python.base}} && ./configure && make && popd',
+ name = 'build',
+ cmdline = 'pushd {{python.base}} && ./configure && make && popd',
max_failures = 1)
email = ReliableProcess(
- name = 'email',
- cmdline = 'echo Success | mail {{role}}@foocorp.com')
+ name = 'email',
+ cmdline = 'echo Success | mail {{role}}@foocorp.com')
build_python = SequentialTask(
- name = 'build_python',
+ name = 'build_python',
processes = [download, unpack, build, email]).bind(python = Python(version = "2.7.3"))
</pre>
<h3 id="thermos-uses-bash,-but-thermos-is-not-bash">Thermos Uses bash, But Thermos Is Not bash</h3>
@@ -1134,23 +1134,23 @@ build_python = SequentialTask(
<p>Many tiny Processes makes for harder to manage configurations.</p>
<pre class="highlight text">copy = Process(
- name = 'copy',
- cmdline = 'rcp user@my_machine:my_application .'
+ name = 'copy',
+ cmdline = 'rcp user@my_machine:my_application .'
)
unpack = Process(
- name = 'unpack',
- cmdline = 'unzip app.zip'
+ name = 'unpack',
+ cmdline = 'unzip app.zip'
)
remove = Process(
- name = 'remove',
- cmdline = 'rm -f app.zip'
+ name = 'remove',
+ cmdline = 'rm -f app.zip'
)
run = Process(
- name = 'app',
- cmdline = 'java -jar app.jar'
+ name = 'app',
+ cmdline = 'java -jar app.jar'
)
run_task = Task(
@@ -1168,10 +1168,10 @@ thing to do.</p>
another, consider using the <code>SequentialTask</code> helper which applies a
linear ordering constraint for you.</p>
<pre class="highlight text">stage = Process(
- name = 'stage',
- cmdline = 'rcp user@my_machine:my_application . && unzip app.zip && rm -f app.zip')
+ name = 'stage',
+ cmdline = 'rcp user@my_machine:my_application . && unzip app.zip && rm -f app.zip')
-run = Process(name = 'app', cmdline = 'java -jar app.jar')
+run = Process(name = 'app', cmdline = 'java -jar app.jar')
run_task = SequentialTask(processes = [stage, run])
</pre>
@@ -1190,8 +1190,8 @@ probably Doing It Wrong™.</p>
resources = Resources(cpu = cpu, ram = ram, disk = disk)
)
- task_one = get_my_task('task_one', 'feynman', 1.0, 32*MB, 1*GB)
- task_two = get_my_task('task_two', 'feynman', 2.0, 64*MB, 1*GB)
+ task_one = get_my_task('task_one', 'feynman', 1.0, 32*MB, 1*GB)
+ task_two = get_my_task('task_two', 'feynman', 2.0, 64*MB, 1*GB)
</pre>
<h4 id="good">Good</h4>
@@ -1201,16 +1201,16 @@ disk. Less proliferation of task-constru
easier-to-read, quicker-to-understand, and a more composable
configuration.</p>
<pre class="highlight text">TASK_TEMPLATE = SequentialTask(
- user = 'wickman',
+ user = 'wickman',
processes = [STAGE_PROCESS, RUN_PROCESS],
)
task_one = TASK_TEMPLATE(
- name = 'task_one',
+ name = 'task_one',
resources = Resources(cpu = 1.0, ram = 32*MB, disk = 1*GB) )
task_two = TASK_TEMPLATE(
- name = 'task_two',
+ name = 'task_two',
resources = Resources(cpu = 2.0, ram = 64*MB, disk = 1*GB)
)
</pre>
@@ -1238,7 +1238,7 @@ task_two = TASK_TEMPLATE(
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/contributing/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/contributing/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/contributing/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/contributing/index.html Fri Nov 21 19:43:23 2014
@@ -153,7 +153,7 @@ next fix is to clean up your Jira and Re
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/cron-jobs/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/cron-jobs/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/cron-jobs/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/cron-jobs/index.html Fri Nov 21 19:43:23 2014
@@ -110,14 +110,14 @@ include “every 5 minutes” (<
# A cron job that runs every 5 minutes.
jobs = [
Job(
- cluster = 'devcluster',
- role = 'www-data',
- environment = 'test',
- name = 'cron_hello_world',
- cron_schedule = '*/5 * * * *',
+ cluster = 'devcluster',
+ role = 'www-data',
+ environment = 'test',
+ name = 'cron_hello_world',
+ cron_schedule = '*/5 * * * *',
task = SimpleTask(
- 'cron_hello_world',
- 'echo "Hello world from cron, the time is now $(date --rfc-822)"'),
+ 'cron_hello_world',
+ 'echo "Hello world from cron, the time is now $(date --rfc-822)"'),
),
]
</pre>
@@ -234,7 +234,7 @@ defaults to UTC.</p>
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/deploying-aurora-scheduler/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/deploying-aurora-scheduler/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/deploying-aurora-scheduler/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/deploying-aurora-scheduler/index.html Fri Nov 21 19:43:23 2014
@@ -296,10 +296,10 @@ enforce this.</p>
</pre>
<p>And this job configuration:</p>
<pre class="highlight text">Service(
- name = 'redis',
- role = 'db_team',
+ name = 'redis',
+ role = 'db_team',
constraints = {
- 'dedicated': 'db_team/redis'
+ 'dedicated': 'db_team/redis'
}
...
)
@@ -388,7 +388,7 @@ such that jobs are resilient to failure.
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/developing-aurora-client/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/developing-aurora-client/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/developing-aurora-client/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/developing-aurora-client/index.html Fri Nov 21 19:43:23 2014
@@ -221,7 +221,7 @@ you’ll need to re-initialize your
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/developing-aurora-scheduler/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/developing-aurora-scheduler/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/developing-aurora-scheduler/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/developing-aurora-scheduler/index.html Fri Nov 21 19:43:23 2014
@@ -115,7 +115,7 @@ commit to origin/master.</p>
<p>New dependencies can be added from Maven central by adding a <code>compile</code> dependency to <code>build.gradle</code>.
For example, to add a dependency on <code>com.example</code>’s <code>example-lib</code> 1.0 add this block:</p>
-<pre class="highlight text">compile 'com.example:example-lib:1.0'
+<pre class="highlight text">compile 'com.example:example-lib:1.0'
</pre>
<p>NOTE: Anyone thinking about adding a new dependency should first familiarize themself with the
Apache Foundation’s third-party licensing
@@ -183,7 +183,7 @@ repository root and commit the changed f
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/hooks/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/hooks/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/hooks/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/hooks/index.html Fri Nov 21 19:43:23 2014
@@ -216,10 +216,10 @@ returning <code>True</code>. For example
<p>Recall that <code>.aurora</code> config files are written in Pystachio. So the following turns on hooks for production jobs at cluster1 and cluster2, but leaves them off for similar jobs with a defined user role. Of course, you also need to list the objects that define the hooks in your config file’s <code>hooks</code> variable.</p>
<pre class="highlight python"><span class="n">jobs</span> <span class="o">=</span> <span class="p">[</span>
- <span class="n">Job</span><span class="p">(</span><span class="n">enable_hooks</span> <span class="o">=</span> <span class="bp">True</span><span class="p">,</span> <span class="n">cluster</span> <span class="o">=</span> <span class="n">c</span><span class="p">,</span> <span class="n">env</span> <span class="o">=</span> <span class="s">'prod'</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="p">(</span><span class="s">'cluster1'</span><span class="p">,</span> <span class="s">'cluster2'</span><span class="p">)</span>
+ <span class="n">Job</span><span class="p">(</span><span class="n">enable_hooks</span> <span class="o">=</span> <span class="bp">True</span><span class="p">,</span> <span class="n">cluster</span> <span class="o">=</span> <span class="n">c</span><span class="p">,</span> <span class="n">env</span> <span class="o">=</span> <span class="s">'prod'</span><span class="p">)</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="p">(</span><span class="s">'cluster1'</span><span class="p">,</span> <span class="s">'cluster2'</span><span class="p">)</span>
<span class="p">]</span>
<span class="n">jobs</span><span class="o">.</span><span class="n">extend</span><span class="p">(</span>
- <span class="n">Job</span><span class="p">(</span><span class="n">cluster</span> <span class="o">=</span> <span class="n">c</span><span class="p">,</span> <span class="n">env</span> <span class="o">=</span> <span class="s">'prod'</span><span class="p">,</span> <span class="n">role</span> <span class="o">=</span> <span class="n">getpass</span><span class="o">.</span><span class="n">getuser</span><span class="p">())</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="p">(</span><span class="s">'cluster1'</span><span class="p">,</span> <span class="s">'cluster2'</span><span class="p">))</span>
+ <span class="n">Job</span><span class="p">(</span><span class="n">cluster</span> <span class="o">=</span> <span class="n">c</span><span class="p">,</span> <span class="n">env</span> <span class="o">=</span> <span class="s">'prod'</span><span class="p">,</span> <span class="n">role</span> <span class="o">=</span> <span class="n">getpass</span><span class="o">.</span><span class="n">getuser</span><span class="p">())</span> <span class="k">for</span> <span class="n">c</span> <span class="ow">in</span> <span class="p">(</span><span class="s">'cluster1'</span><span class="p">,</span> <span class="s">'cluster2'</span><span class="p">))</span>
<span class="c"># Hooks disabled for these jobs</span>
</pre>
<h2 id="command-line">Command Line</h2>
@@ -240,17 +240,17 @@ returning <code>True</code>. For example
<pre class="highlight python"><span class="c"># Defines a method pre_kill_job</span>
<span class="k">class</span> <span class="nc">KillConfirmer</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
<span class="k">def</span> <span class="nf">confirm</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">msg</span><span class="p">):</span>
- <span class="k">return</span> <span class="nb">raw_input</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span> <span class="o">==</span> <span class="s">'yes'</span>
+ <span class="k">return</span> <span class="nb">raw_input</span><span class="p">(</span><span class="n">msg</span><span class="p">)</span><span class="o">.</span><span class="n">lower</span><span class="p">()</span> <span class="o">==</span> <span class="s">'yes'</span>
<span class="k">def</span> <span class="nf">pre_kill_job</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">job_key</span><span class="p">,</span> <span class="n">shards</span><span class="o">=</span><span class="bp">None</span><span class="p">):</span>
- <span class="n">shards</span> <span class="o">=</span> <span class="p">(</span><span class="s">'shards </span><span class="si">%</span><span class="s">s'</span> <span class="o">%</span> <span class="n">shards</span><span class="p">)</span> <span class="k">if</span> <span class="n">shards</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span> <span class="k">else</span> <span class="s">'all shards'</span>
- <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">confirm</span><span class="p">(</span><span class="s">'Are you sure you want to kill </span><span class="si">%</span><span class="s">s (</span><span class="si">%</span><span class="s">s)? (yes/no): '</span>
+ <span class="n">shards</span> <span class="o">=</span> <span class="p">(</span><span class="s">'shards </span><span class="si">%</span><span class="s">s'</span> <span class="o">%</span> <span class="n">shards</span><span class="p">)</span> <span class="k">if</span> <span class="n">shards</span> <span class="ow">is</span> <span class="ow">not</span> <span class="bp">None</span> <span class="k">else</span> <span class="s">'all shards'</span>
+ <span class="k">return</span> <span class="bp">self</span><span class="o">.</span><span class="n">confirm</span><span class="p">(</span><span class="s">'Are you sure you want to kill </span><span class="si">%</span><span class="s">s (</span><span class="si">%</span><span class="s">s)? (yes/no): '</span>
<span class="o">%</span> <span class="p">(</span><span class="n">job_key</span><span class="p">,</span> <span class="n">shards</span><span class="p">))</span>
</pre>
<h3 id="pre_-methods">pre_ Methods</h3>
<p><code>pre_</code> methods have the signature:</p>
-<pre class="highlight text">pre_<API method name>(self, <associated method's signature>)
+<pre class="highlight text">pre_<API method name>(self, <associated method's signature>)
</pre>
<p><code>pre_</code> methods have the same signature as their associated method, with the addition of <code>self</code> as the first parameter. See the <a href="#Chart">chart</a> above for the mapping of parameters to methods. When writing <code>pre_</code> methods, you can use the <code>*</code> and <code>**</code> syntax to designate that all unspecified parameters are passed in a list to the <code>*</code>ed variable and all named parameters with values are passed as name/value pairs to the <code>**</code>ed variable.</p>
@@ -259,7 +259,7 @@ returning <code>True</code>. For example
<h3 id="err_-methods">err_ Methods</h3>
<p><code>err_</code> methods have the signature:</p>
-<pre class="highlight text">err_<API method name>(self, exc, <associated method's signature>)
+<pre class="highlight text">err_<API method name>(self, exc, <associated method's signature>)
</pre>
<p><code>err_</code> methods have the same signature as their associated method, with the addition of a first parameter <code>self</code> and a second parameter <code>exc</code>. <code>exc</code> is either a result with responseCode other than <code>ResponseCode.OK</code> or an <code>Exception</code>. See the <a href="#Chart">chart</a> above for the mapping of parameters to methods. When writing <code>err</code>_ methods, you can use the <code>*</code> and <code>**</code> syntax to designate that all unspecified parameters are passed in a list to the <code>*</code>ed variable and all named parameters with values are passed as name/value pairs to the <code>**</code>ed variable.</p>
@@ -299,9 +299,9 @@ returning <code>True</code>. For example
<pre class="highlight python"><span class="c"># Overrides the standard do-nothing generic_hook by adding a log writing operation.</span>
<span class="kn">from</span> <span class="nn">twitter.common</span> <span class="kn">import</span> <span class="n">log</span>
<span class="k">class</span> <span class="nc">Logger</span><span class="p">(</span><span class="nb">object</span><span class="p">):</span>
- <span class="s">'''Adds to the log every time a hookable API method is called'''</span>
+ <span class="s">'''Adds to the log every time a hookable API method is called'''</span>
<span class="k">def</span> <span class="nf">generic_hook</span><span class="p">(</span><span class="bp">self</span><span class="p">,</span> <span class="n">hook_config</span><span class="p">,</span> <span class="n">event</span><span class="p">,</span> <span class="n">method_name</span><span class="p">,</span> <span class="n">result_or_err</span><span class="p">,</span> <span class="o">*</span><span class="n">args</span><span class="p">,</span> <span class="o">**</span><span class="n">kw</span><span class="p">)</span>
- <span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">'</span><span class="si">%</span><span class="s">s: </span><span class="si">%</span><span class="s">s_</span><span class="si">%</span><span class="s">s of </span><span class="si">%</span><span class="s">s'</span>
+ <span class="n">log</span><span class="o">.</span><span class="n">info</span><span class="p">(</span><span class="s">'</span><span class="si">%</span><span class="s">s: </span><span class="si">%</span><span class="s">s_</span><span class="si">%</span><span class="s">s of </span><span class="si">%</span><span class="s">s'</span>
<span class="o">%</span> <span class="p">(</span><span class="bp">self</span><span class="o">.</span><span class="n">__class__</span><span class="o">.</span><span class="n">__name__</span><span class="p">,</span> <span class="n">event</span><span class="p">,</span> <span class="n">method_name</span><span class="p">,</span> <span class="n">hook_config</span><span class="o">.</span><span class="n">job_key</span><span class="p">))</span>
</pre>
<h2 id="hooks-process-checklist">Hooks Process Checklist</h2>
@@ -347,7 +347,7 @@ returning <code>True</code>. For example
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/index.html Fri Nov 21 19:43:23 2014
@@ -112,7 +112,7 @@
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/monitoring/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/monitoring/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/monitoring/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/monitoring/index.html Fri Nov 21 19:43:23 2014
@@ -75,7 +75,7 @@ since it will give you a global view of
<p>The scheduler exposes a <em>lot</em> of instrumentation data via its HTTP interface. You can get a quick
peek at the first few of these in our vagrant image:</p>
-<pre class="highlight text">$ vagrant ssh -c 'curl -s localhost:8081/vars | head'
+<pre class="highlight text">$ vagrant ssh -c 'curl -s localhost:8081/vars | head'
async_tasks_completed 1004
attribute_store_fetch_all_events 15
attribute_store_fetch_all_events_per_sec 0.0
@@ -92,7 +92,7 @@ name and value. Values may be integers,
may be dynamic).</p>
<p>If your monitoring infrastructure prefers JSON, the scheduler exports that as well:</p>
-<pre class="highlight text">$ vagrant ssh -c 'curl -s localhost:8081/vars.json | python -mjson.tool | head'
+<pre class="highlight text">$ vagrant ssh -c 'curl -s localhost:8081/vars.json | python -mjson.tool | head'
{
"async_tasks_completed": 1009,
"attribute_store_fetch_all_events": 15,
@@ -335,7 +335,7 @@ task into the master, slave, and/or exec
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/resource-isolation/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/resource-isolation/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/resource-isolation/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/resource-isolation/index.html Fri Nov 21 19:43:23 2014
@@ -240,7 +240,7 @@ the same host may cause contention.</p>
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/scheduler-storage/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/scheduler-storage/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/scheduler-storage/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/scheduler-storage/index.html Fri Nov 21 19:43:23 2014
@@ -137,7 +137,7 @@ using <code>aurora_admin snapshot</code>
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/sla/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/sla/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/sla/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/sla/index.html Fri Nov 21 19:43:23 2014
@@ -285,7 +285,7 @@ Scheduler restarts may result in missed
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/storage-config/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/storage-config/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/storage-config/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/storage-config/index.html Fri Nov 21 19:43:23 2014
@@ -254,7 +254,7 @@ the provided backup snapshot and initiat
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/storage/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/storage/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/storage/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/storage/index.html Fri Nov 21 19:43:23 2014
@@ -186,7 +186,7 @@ recover the state up to the last write.<
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/test-resource-generation/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/test-resource-generation/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/test-resource-generation/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/test-resource-generation/index.html Fri Nov 21 19:43:23 2014
@@ -117,7 +117,7 @@ copying the checkpoint file from the san
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/tutorial/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/tutorial/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/tutorial/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/tutorial/index.html Fri Nov 21 19:43:23 2014
@@ -138,24 +138,24 @@ code in the file <code>hello_world.auror
<!-- NOTE: If you are changing this file, be sure to also update examples/vagrant/test_tutorial.sh.
-->
-<pre class="highlight python"><span class="n">pkg_path</span> <span class="o">=</span> <span class="s">'/vagrant/hello_world.py'</span>
+<pre class="highlight python"><span class="n">pkg_path</span> <span class="o">=</span> <span class="s">'/vagrant/hello_world.py'</span>
<span class="c"># we use a trick here to make the configuration change with</span>
<span class="c"># the contents of the file, for simplicity. in a normal setting, packages would be</span>
<span class="c"># versioned, and the version number would be changed in the configuration.</span>
<span class="kn">import</span> <span class="nn">hashlib</span>
-<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">pkg_path</span><span class="p">,</span> <span class="s">'rb'</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
+<span class="k">with</span> <span class="nb">open</span><span class="p">(</span><span class="n">pkg_path</span><span class="p">,</span> <span class="s">'rb'</span><span class="p">)</span> <span class="k">as</span> <span class="n">f</span><span class="p">:</span>
<span class="n">pkg_checksum</span> <span class="o">=</span> <span class="nb">hash</span><span class="n">lib</span><span class="o">.</span><span class="n">md5</span><span class="p">(</span><span class="n">f</span><span class="o">.</span><span class="n">read</span><span class="p">())</span><span class="o">.</span><span class="nb">hex</span><span class="n">digest</span><span class="p">()</span>
<span class="c"># copy hello_world.py into the local sandbox</span>
<span class="n">install</span> <span class="o">=</span> <span class="n">Process</span><span class="p">(</span>
- <span class="n">name</span> <span class="o">=</span> <span class="s">'fetch_package'</span><span class="p">,</span>
- <span class="n">cmdline</span> <span class="o">=</span> <span class="s">'cp </span><span class="si">%</span><span class="s">s . && echo </span><span class="si">%</span><span class="s">s && chmod +x hello_world.py'</span> <span class="o">%</span> <span class="p">(</span><span class="n">pkg_path</span><span class="p">,</span> <span class="n">pkg_checksum</span><span class="p">))</span>
+ <span class="n">name</span> <span class="o">=</span> <span class="s">'fetch_package'</span><span class="p">,</span>
+ <span class="n">cmdline</span> <span class="o">=</span> <span class="s">'cp </span><span class="si">%</span><span class="s">s . && echo </span><span class="si">%</span><span class="s">s && chmod +x hello_world.py'</span> <span class="o">%</span> <span class="p">(</span><span class="n">pkg_path</span><span class="p">,</span> <span class="n">pkg_checksum</span><span class="p">))</span>
<span class="c"># run the script</span>
<span class="n">hello_world</span> <span class="o">=</span> <span class="n">Process</span><span class="p">(</span>
- <span class="n">name</span> <span class="o">=</span> <span class="s">'hello_world'</span><span class="p">,</span>
- <span class="n">cmdline</span> <span class="o">=</span> <span class="s">'python hello_world.py'</span><span class="p">)</span>
+ <span class="n">name</span> <span class="o">=</span> <span class="s">'hello_world'</span><span class="p">,</span>
+ <span class="n">cmdline</span> <span class="o">=</span> <span class="s">'python hello_world.py'</span><span class="p">)</span>
<span class="c"># describe the task</span>
<span class="n">hello_world_task</span> <span class="o">=</span> <span class="n">SequentialTask</span><span class="p">(</span>
@@ -163,10 +163,10 @@ code in the file <code>hello_world.auror
<span class="n">resources</span> <span class="o">=</span> <span class="n">Resources</span><span class="p">(</span><span class="n">cpu</span> <span class="o">=</span> <span class="mi">1</span><span class="p">,</span> <span class="n">ram</span> <span class="o">=</span> <span class="mi">1</span><span class="o">*</span><span class="n">MB</span><span class="p">,</span> <span class="n">disk</span><span class="o">=</span><span class="mi">8</span><span class="o">*</span><span class="n">MB</span><span class="p">))</span>
<span class="n">jobs</span> <span class="o">=</span> <span class="p">[</span>
- <span class="n">Service</span><span class="p">(</span><span class="n">cluster</span> <span class="o">=</span> <span class="s">'devcluster'</span><span class="p">,</span>
- <span class="n">environment</span> <span class="o">=</span> <span class="s">'devel'</span><span class="p">,</span>
- <span class="n">role</span> <span class="o">=</span> <span class="s">'www-data'</span><span class="p">,</span>
- <span class="n">name</span> <span class="o">=</span> <span class="s">'hello_world'</span><span class="p">,</span>
+ <span class="n">Service</span><span class="p">(</span><span class="n">cluster</span> <span class="o">=</span> <span class="s">'devcluster'</span><span class="p">,</span>
+ <span class="n">environment</span> <span class="o">=</span> <span class="s">'devel'</span><span class="p">,</span>
+ <span class="n">role</span> <span class="o">=</span> <span class="s">'www-data'</span><span class="p">,</span>
+ <span class="n">name</span> <span class="o">=</span> <span class="s">'hello_world'</span><span class="p">,</span>
<span class="n">task</span> <span class="o">=</span> <span class="n">hello_world_task</span><span class="p">)</span>
<span class="p">]</span>
</pre>
@@ -347,7 +347,7 @@ Thermos work “under the hood&rdquo
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>
Modified: incubator/aurora/site/publish/documentation/latest/user-guide/index.html
URL: http://svn.apache.org/viewvc/incubator/aurora/site/publish/documentation/latest/user-guide/index.html?rev=1640984&r1=1640983&r2=1640984&view=diff
==============================================================================
--- incubator/aurora/site/publish/documentation/latest/user-guide/index.html (original)
+++ incubator/aurora/site/publish/documentation/latest/user-guide/index.html Fri Nov 21 19:43:23 2014
@@ -271,8 +271,8 @@ from the point where the update failed.
<p>The Executor implements a protocol for rudimentary control of a task via HTTP. Tasks subscribe for
this protocol by declaring a port named <code>health</code>. Take for example this configuration snippet:</p>
<pre class="highlight text">nginx = Process(
- name = 'nginx',
- cmdline = './run_nginx.sh -port {{thermos.ports[http]}}')
+ name = 'nginx',
+ cmdline = './run_nginx.sh -port {{thermos.ports[http]}}')
</pre>
<p>When this Process is included in a job, the job will be allocated a port, and the command line
will be replaced with something like:</p>
@@ -482,7 +482,7 @@ about the Aurora Client.</p>
<h3>Apache Software Foundation</h3>
<div class="span8">
- Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Thrift, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
+ Copyright 2014 <a href="http://www.apache.org/">Apache Software Foundation</a>. Licensed under the <a href="http://www.apache.org/licenses/">Apache License v2.0</a>. Apache, Apache Aurora, and the Apache feather logo are trademarks of The Apache Software Foundation. Currently part of the <a href="http://incubator.apache.org">Apache Incubator</a>.
</div>
<div class=" pull-right">
<a href="http://incubator.apache.org" class="logo"><img src="/assets/img/apache_incubator_logo.png" alt="Apache Incubator" class="pull-right"/></a>