Return-Path: X-Original-To: archive-asf-public-internal@cust-asf2.ponee.io Delivered-To: archive-asf-public-internal@cust-asf2.ponee.io Received: from cust-asf.ponee.io (cust-asf.ponee.io [163.172.22.183]) by cust-asf2.ponee.io (Postfix) with ESMTP id 9C71D200C1B for ; Tue, 14 Feb 2017 08:06:11 +0100 (CET) Received: by cust-asf.ponee.io (Postfix) id 9B0CA160B5F; Tue, 14 Feb 2017 07:06:11 +0000 (UTC) Delivered-To: archive-asf-public@cust-asf.ponee.io Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by cust-asf.ponee.io (Postfix) with SMTP id E65D1160B52 for ; Tue, 14 Feb 2017 08:06:10 +0100 (CET) Received: (qmail 61788 invoked by uid 500); 14 Feb 2017 07:06:09 -0000 Mailing-List: contact reviews-help@aurora.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: reviews@aurora.apache.org Delivered-To: mailing list reviews@aurora.apache.org Received: (qmail 61756 invoked by uid 99); 14 Feb 2017 07:06:09 -0000 Received: from reviews-vm.apache.org (HELO reviews.apache.org) (140.211.11.40) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 14 Feb 2017 07:06:09 +0000 Received: from reviews.apache.org (localhost [127.0.0.1]) by reviews.apache.org (Postfix) with ESMTP id 4588430FBBD; Tue, 14 Feb 2017 07:06:08 +0000 (UTC) Content-Type: multipart/alternative; boundary="===============5553858704716189174==" MIME-Version: 1.0 Subject: Re: Review Request 56629: Expose task pruning endpoint in aurora_admin From: David McLaughlin To: Santhosh Kumar Shanmugham , Stephan Erb , Zameer Manji Cc: Aurora , Mehrdad Nurolahzade , Aurora ReviewBot , Reza Motamedi , David McLaughlin Date: Tue, 14 Feb 2017 07:06:08 -0000 Message-ID: <20170214070608.13056.13798@reviews.apache.org> X-ReviewBoard-URL: https://reviews.apache.org/ Auto-Submitted: auto-generated Sender: David McLaughlin X-ReviewGroup: Aurora X-Auto-Response-Suppress: DR, RN, OOF, AutoReply X-ReviewRequest-URL: https://reviews.apache.org/r/56629/ X-Sender: David McLaughlin References: <20170214054428.31018.34265@reviews.apache.org> In-Reply-To: <20170214054428.31018.34265@reviews.apache.org> Reply-To: David McLaughlin X-ReviewRequest-Repository: aurora archived-at: Tue, 14 Feb 2017 07:06:11 -0000 --===============5553858704716189174== MIME-Version: 1.0 Content-Type: text/plain; charset="utf-8" Content-Transfer-Encoding: 7bit > On Feb. 14, 2017, 5:44 a.m., Santhosh Kumar Shanmugham wrote: > > LGTM modulo my pervious comment, > > > > "Since this command has the potential to hurt the Scheduler, should we make sure that atleast one of the filters is provided? Or force a minimum default limit to avoid operators from accidentally bringing down the scheduler?" Not a huge fan of client-side limits like that. We should address how expensive task deletion is on the server side. - David ----------------------------------------------------------- This is an automatically generated e-mail. To reply, visit: https://reviews.apache.org/r/56629/#review165456 ----------------------------------------------------------- On Feb. 14, 2017, 5:41 a.m., David McLaughlin wrote: > > ----------------------------------------------------------- > This is an automatically generated e-mail. To reply, visit: > https://reviews.apache.org/r/56629/ > ----------------------------------------------------------- > > (Updated Feb. 14, 2017, 5:41 a.m.) > > > Review request for Aurora, Santhosh Kumar Shanmugham, Stephan Erb, and Zameer Manji. > > > Repository: aurora > > > Description > ------- > > Expose task pruning endpoint in aurora_admin. Useful for scale testing in order to 'clean up' after a test run, but also useful in production if you have a bad actor inflating the size of your task index. > > > Diffs > ----- > > RELEASE-NOTES.md 3e9880249aa40215a08424b58f85a634337cc67e > api/src/main/thrift/org/apache/aurora/gen/api.thrift 6205c2ed1e2d5898a322de5bc2bcba6b2c0cd4b1 > src/main/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterface.java a211483caf59755b1f9b286b58f183e00db6eee6 > src/main/python/apache/aurora/admin/admin.py 070c348d2ca5db1edecf832efd9aa5481bddaa4b > src/main/python/apache/aurora/client/api/__init__.py 1250ccd16f906eec08c159df3300d1b94b306d8e > src/test/java/org/apache/aurora/scheduler/thrift/SchedulerThriftInterfaceTest.java 0cdd9829417bb3ef0215278a9458a3dd78a49a20 > src/test/python/apache/aurora/admin/test_admin.py 66abade378d3974dbf031a7bbed9cd6fc4f22d5f > src/test/python/apache/aurora/client/api/test_scheduler_client.py fab97986dcecf7761e161f4074d5108a8c362e6e > > Diff: https://reviews.apache.org/r/56629/diff/ > > > Testing > ------- > > Ran various combinations of task pruning via aurora_admin in Vagrant. Works as expected. > > Also: > > ./pants test src/test/python/apache/aurora/admin:: > > > Thanks, > > David McLaughlin > > --===============5553858704716189174==--