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 6A0E62004F3 for ; Tue, 15 Aug 2017 10:45:40 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 6838A1666B0; Tue, 15 Aug 2017 08:45:40 +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 870791666AE for ; Tue, 15 Aug 2017 10:45:39 +0200 (CEST) Received: (qmail 37511 invoked by uid 500); 15 Aug 2017 08:45:38 -0000 Mailing-List: contact dev-help@ignite.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.apache.org Delivered-To: mailing list dev@ignite.apache.org Received: (qmail 37499 invoked by uid 99); 15 Aug 2017 08:45:38 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd4-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 15 Aug 2017 08:45:38 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd4-us-west.apache.org (ASF Mail Server at spamd4-us-west.apache.org) with ESMTP id DBA86C0118 for ; Tue, 15 Aug 2017 08:45:37 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd4-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: 2.379 X-Spam-Level: ** X-Spam-Status: No, score=2.379 tagged_above=-999 required=6.31 tests=[DKIM_SIGNED=0.1, DKIM_VALID=-0.1, DKIM_VALID_AU=-0.1, HTML_MESSAGE=2, RCVD_IN_DNSWL_NONE=-0.0001, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RCVD_IN_SORBS_SPAM=0.5, SPF_PASS=-0.001] autolearn=disabled Authentication-Results: spamd4-us-west.apache.org (amavisd-new); dkim=pass (2048-bit key) header.d=gmail.com Received: from mx1-lw-eu.apache.org ([10.40.0.8]) by localhost (spamd4-us-west.apache.org [10.40.0.11]) (amavisd-new, port 10024) with ESMTP id k6tndYsgk3gX for ; Tue, 15 Aug 2017 08:45:35 +0000 (UTC) Received: from mail-qk0-f181.google.com (mail-qk0-f181.google.com [209.85.220.181]) by mx1-lw-eu.apache.org (ASF Mail Server at mx1-lw-eu.apache.org) with ESMTPS id B00DB5F239 for ; Tue, 15 Aug 2017 08:45:34 +0000 (UTC) Received: by mail-qk0-f181.google.com with SMTP id u139so1327673qka.1 for ; Tue, 15 Aug 2017 01:45:34 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :cc; bh=Fj1ZUEozafv5hH9qI+sB0Tf74NefPmTb6fg9ZKjOvpY=; b=egI4tfByT9tzPFxlXQm8R0xsOEteOts0NVLvAR8DP87KZnkeFBD223YUdMEZcE4lyh CTx7qThVBA0w6BeW/r2tS8/br+0LsLqtdIpzfm+EkxVyaGKVLWBE5lvpTVL6gj5Z6rv0 auJqxsCt7vJs+jve+LJW6hPWCvyXTrfUIUJ/oQqWhYN6UG1y/V6Q28UZglLKjJE7ue+d soARKYojKga4Vu+0w5O/B8oOYCXCMjy+Lp20kNSMxmN9sMahZcWuEIWM5zswMcvQLooK w97cAGnhhxCCpcrcXBO788FsfmmYknm31l5N9nEN9mV0dCSNvsgqV7l6B4+jzBbPysrP Ht8A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:mime-version:in-reply-to:references:from:date :message-id:subject:to:cc; bh=Fj1ZUEozafv5hH9qI+sB0Tf74NefPmTb6fg9ZKjOvpY=; b=uKJySpTRTN8CDGDuJWBegjT7IzALjatJCpazOtjlwjGAvO4DnqpOxP4842ODt+ZeEI BC5aD9hjtMlRFVXSWMJRCkyyo2Gu0bYgJJdwouLD68SJdPtzgRoYL5lSiDxZwCYQYAFm V3mKvfbjo5/y9R7ZAKbdgwYxVm+PzsUtYVE71UvkIhLU2ZaojWn9CHW8Cfc5rj6hG/TL k/QQ+Pux7Inh+AEAc8xkhJ3YbwQENgr0MKqK67mIFlRMkYrHp3zLZm3U7bRxOVIXZvAk K4I1Y4Q4n+z3xrKq2+tAHm2mdJ45t5lzavq3Qe7YuOy1w+vpeR68J4BN6J2I4UVULw5y upeA== X-Gm-Message-State: AHYfb5gvANTDkT5wBtuVE/HYSOCEf9IkchPzbCHm0BLbNBqeAM01DWq9 +2JDVn28WlsRLo8l6B7GyMb1gQk+WckUrFs= X-Received: by 10.55.43.40 with SMTP id r40mr5053679qkh.47.1502786733707; Tue, 15 Aug 2017 01:45:33 -0700 (PDT) MIME-Version: 1.0 Received: by 10.200.43.41 with HTTP; Tue, 15 Aug 2017 01:45:33 -0700 (PDT) In-Reply-To: References: <82616AF7-6502-42E9-8123-5FDF5AB4E57D@apache.org> From: Dmitriy Govorukhin Date: Tue, 15 Aug 2017 11:45:33 +0300 Message-ID: Subject: Re: Control.sh script and cluster activation To: dev@ignite.apache.org Cc: Dmitriy Setrakyan Content-Type: multipart/alternative; boundary="001a11476c3c6f973c0556c6cd9f" archived-at: Tue, 15 Aug 2017 08:45:40 -0000 --001a11476c3c6f973c0556c6cd9f Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable Folks, I created jira issue for the current discussion IGNITE-6064 , leave you comment please. On Tue, Aug 15, 2017 at 11:32 AM, Dmitriy Setrakyan wrote: > Added one more suggestion below. BTW, if there is no ticket, let's create > one and copy all the suggestions there. > > On Tue, Aug 15, 2017 at 1:13 AM, Dmitriy Setrakyan > wrote: > > > Guys, > > > > Where is the ticket for adding control.[sh|bat] script to the bin folde= r? > > I cannot find any mention of it. Was there a discussion on the dev list= ? > > > > Here are the issues I am seeing with the script: > > > > 1. It could be named better. Perhaps the name "cluster-ops" or > > "cluster-switch" would be better. We should rename it in the next > release. > > 2. typing any bad command, e.g. "control bla" should provide a > > standard usage message explaining correct syntax (see any other > command > > under bin folder) > > 3. failure to connect to the cluster results in a long stack trace..= . > > instead, it should provide a standard error message, suggesting > possible > > reasons for it. > > > > 4. Whenever trying to connect to a cluster, the script should print out= a > message "Connecting to ip-address:port ...". Otherwise, it looks like it = is > just hanging. > > > > D. > > > > On Tue, Aug 15, 2017 at 12:59 AM, Dmitriy Govorukhin < > > dmitriy.govorukhin@gmail.com> wrote: > > > >> Valentin, > >> > >> We have jira issue for this IGNITE-5586 > >> > >> > >> On Tue, Aug 15, 2017 at 10:56 AM, Dmitriy Govorukhin < > >> dmitriy.govorukhin@gmail.com> wrote: > >> > >> > > >> > Denis, > >> > > >> > 1. control.sh have help parameter. If you try enter ./control.sh > --help, > >> > result is an example of how to use it, > >> > "Example: --host {ip} --port {port} --{activate/deactivate} or witho= ut > >> > command --host {ip} --port {port} then will print status" > >> > > >> > 2. Visorcmd will start daemon node and join in topology, it is quite > >> long > >> > time(as you know nodes joining in series) and requires resources. > >> > Main goal was create some point for activation, fast and lightweight= , > >> > script does not start node. > >> > > >> > 3. Historically, the first name(control.sh - controls cluster > >> > state active/inactive). Have any idea for another name? > >> > > >> > On Tue, Aug 15, 2017 at 2:25 AM, Valentin Kulichenko < > >> > valentin.kulichenko@gmail.com> wrote: > >> > > >> >> Agree that this is confusing. I think this functionality should be = a > >> part > >> >> of Visor CLI tool (likely a new command there). > >> >> > >> >> -Val > >> >> > >> >> On Mon, Aug 14, 2017 at 4:21 PM, Denis Magda > >> wrote: > >> >> > >> >> > Dmitriy, > >> >> > > >> >> > I see you contributed control.sh script that activates a cluster > >> after a > >> >> > restart. Honestly, I=E2=80=99m a bit confused by it: > >> >> > > >> >> > 1. How to use it? I could find out that there are some of the > >> parameters > >> >> > but the =E2=80=98help=E2=80=99 is not implemented. Please fix thi= s and provide a > >> >> > description for every parameter you introduced. > >> >> > > >> >> > 2. Why did we decide to create a specific script for that? Why > can=E2=80=99t > >> we > >> >> > use existing visorcmd script? > >> >> > > >> >> > 3. Why the script called =E2=80=9Ccontrol.sh=E2=80=9D? > >> >> > > >> >> > =E2=80=94 > >> >> > Denis > >> >> > >> > > >> > > >> > > > > > --001a11476c3c6f973c0556c6cd9f--