You are viewing a plain text version of this content. The canonical link for it is here.
Posted to reviews@aurora.apache.org by Jordan Ly <jo...@gmail.com> on 2017/06/01 00:02:05 UTC

Re: Review Request 59640: Prioritize adding instances over updating instances during an update

-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59640/
-----------------------------------------------------------

(Updated June 1, 2017, 12:02 a.m.)


Review request for Aurora, David McLaughlin, Santhosh Kumar Shanmugham, Stephan Erb, and Zameer Manji.


Changes
-------

Fix merge conflict


Bugs: AURORA-1928
    https://issues.apache.org/jira/browse/AURORA-1928


Repository: aurora


Description
-------

Currently, when updating a job we choose to update instances naively by ascending instance ID number.
However, it would be better to add new instances before killing and updating older instances.

This patch makes it so the job updater prefers to create new instances, then
update instances, and finally kill instances.


Diffs (updated)
-----

  RELEASE-NOTES.md fc77b0268dbb0e0ae2d8783a1a4db40aea40123d 
  docs/features/job-updates.md 60968aeb47e787720e3a29b33e31f66d3f0c9839 
  src/main/java/org/apache/aurora/scheduler/updater/UpdateFactory.java 14c2d2de3186271819a5f4e527d3b30fd34d2b21 
  src/test/java/org/apache/aurora/scheduler/updater/JobUpdaterIT.java 290385d737294e23e9dd50f2631303124aa7af7c 
  src/test/java/org/apache/aurora/scheduler/updater/UpdateFactoryImplTest.java 611f6b8681c8e0b286cd361bdb5ace1fea39d9a5 


Diff: https://reviews.apache.org/r/59640/diff/3/

Changes: https://reviews.apache.org/r/59640/diff/2-3/


Testing
-------

Ran unit tests and integration tests.

Had to modify some integration tests since we now prefer to create over update -- needed to change
the ordering of actions. Additionally, some unit tests only specified configs for one instance even
though desiredInstances is always 2 -- had to make it so the range of configurations is always 0-2
when creating. Otherwise, it would try to create instances first even though the test didn't really
care.

Tested different update configurations on the Vagrant cluster: only adding instances, only updating
instances, only killing instances, create & update, update & kill.


Thanks,

Jordan Ly


Re: Review Request 59640: Prioritize adding instances over updating instances during an update

Posted by David McLaughlin <da...@dmclaughlin.com>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59640/#review176852
-----------------------------------------------------------



This has been merged to master.

- David McLaughlin


On June 1, 2017, 12:02 a.m., Jordan Ly wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59640/
> -----------------------------------------------------------
> 
> (Updated June 1, 2017, 12:02 a.m.)
> 
> 
> Review request for Aurora, David McLaughlin, Santhosh Kumar Shanmugham, Stephan Erb, and Zameer Manji.
> 
> 
> Bugs: AURORA-1928
>     https://issues.apache.org/jira/browse/AURORA-1928
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> Currently, when updating a job we choose to update instances naively by ascending instance ID number.
> However, it would be better to add new instances before killing and updating older instances.
> 
> This patch makes it so the job updater prefers to create new instances, then
> update instances, and finally kill instances.
> 
> 
> Diffs
> -----
> 
>   RELEASE-NOTES.md fc77b0268dbb0e0ae2d8783a1a4db40aea40123d 
>   docs/features/job-updates.md 60968aeb47e787720e3a29b33e31f66d3f0c9839 
>   src/main/java/org/apache/aurora/scheduler/updater/UpdateFactory.java 14c2d2de3186271819a5f4e527d3b30fd34d2b21 
>   src/test/java/org/apache/aurora/scheduler/updater/JobUpdaterIT.java 290385d737294e23e9dd50f2631303124aa7af7c 
>   src/test/java/org/apache/aurora/scheduler/updater/UpdateFactoryImplTest.java 611f6b8681c8e0b286cd361bdb5ace1fea39d9a5 
> 
> 
> Diff: https://reviews.apache.org/r/59640/diff/3/
> 
> 
> Testing
> -------
> 
> Ran unit tests and integration tests.
> 
> Had to modify some integration tests since we now prefer to create over update -- needed to change
> the ordering of actions. Additionally, some unit tests only specified configs for one instance even
> though desiredInstances is always 2 -- had to make it so the range of configurations is always 0-2
> when creating. Otherwise, it would try to create instances first even though the test didn't really
> care.
> 
> Tested different update configurations on the Vagrant cluster: only adding instances, only updating
> instances, only killing instances, create & update, update & kill.
> 
> 
> Thanks,
> 
> Jordan Ly
> 
>


Re: Review Request 59640: Prioritize adding instances over updating instances during an update

Posted by Aurora ReviewBot <wf...@apache.org>.
-----------------------------------------------------------
This is an automatically generated e-mail. To reply, visit:
https://reviews.apache.org/r/59640/#review176569
-----------------------------------------------------------


Ship it!




Master (e76862a) is green with this patch.
  ./build-support/jenkins/build.sh

I will refresh this build result if you post a review containing "@ReviewBot retry"

- Aurora ReviewBot


On June 1, 2017, 12:02 a.m., Jordan Ly wrote:
> 
> -----------------------------------------------------------
> This is an automatically generated e-mail. To reply, visit:
> https://reviews.apache.org/r/59640/
> -----------------------------------------------------------
> 
> (Updated June 1, 2017, 12:02 a.m.)
> 
> 
> Review request for Aurora, David McLaughlin, Santhosh Kumar Shanmugham, Stephan Erb, and Zameer Manji.
> 
> 
> Bugs: AURORA-1928
>     https://issues.apache.org/jira/browse/AURORA-1928
> 
> 
> Repository: aurora
> 
> 
> Description
> -------
> 
> Currently, when updating a job we choose to update instances naively by ascending instance ID number.
> However, it would be better to add new instances before killing and updating older instances.
> 
> This patch makes it so the job updater prefers to create new instances, then
> update instances, and finally kill instances.
> 
> 
> Diffs
> -----
> 
>   RELEASE-NOTES.md fc77b0268dbb0e0ae2d8783a1a4db40aea40123d 
>   docs/features/job-updates.md 60968aeb47e787720e3a29b33e31f66d3f0c9839 
>   src/main/java/org/apache/aurora/scheduler/updater/UpdateFactory.java 14c2d2de3186271819a5f4e527d3b30fd34d2b21 
>   src/test/java/org/apache/aurora/scheduler/updater/JobUpdaterIT.java 290385d737294e23e9dd50f2631303124aa7af7c 
>   src/test/java/org/apache/aurora/scheduler/updater/UpdateFactoryImplTest.java 611f6b8681c8e0b286cd361bdb5ace1fea39d9a5 
> 
> 
> Diff: https://reviews.apache.org/r/59640/diff/3/
> 
> 
> Testing
> -------
> 
> Ran unit tests and integration tests.
> 
> Had to modify some integration tests since we now prefer to create over update -- needed to change
> the ordering of actions. Additionally, some unit tests only specified configs for one instance even
> though desiredInstances is always 2 -- had to make it so the range of configurations is always 0-2
> when creating. Otherwise, it would try to create instances first even though the test didn't really
> care.
> 
> Tested different update configurations on the Vagrant cluster: only adding instances, only updating
> instances, only killing instances, create & update, update & kill.
> 
> 
> Thanks,
> 
> Jordan Ly
> 
>