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 5C636200B92 for ; Wed, 28 Sep 2016 20:34:26 +0200 (CEST) Received: by cust-asf.ponee.io (Postfix) id 5B1AB160AB8; Wed, 28 Sep 2016 18:34:26 +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 9AB1D160AE2 for ; Wed, 28 Sep 2016 20:34:25 +0200 (CEST) Received: (qmail 20711 invoked by uid 500); 28 Sep 2016 18:34:22 -0000 Mailing-List: contact commits-help@trafodion.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: commits@trafodion.apache.org Delivered-To: mailing list commits@trafodion.apache.org Received: (qmail 19884 invoked by uid 99); 28 Sep 2016 18:34:20 -0000 Received: from pnap-us-west-generic-nat.apache.org (HELO spamd2-us-west.apache.org) (209.188.14.142) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 18:34:20 +0000 Received: from localhost (localhost [127.0.0.1]) by spamd2-us-west.apache.org (ASF Mail Server at spamd2-us-west.apache.org) with ESMTP id 93E5E1A8BDD for ; Wed, 28 Sep 2016 18:34:19 +0000 (UTC) X-Virus-Scanned: Debian amavisd-new at spamd2-us-west.apache.org X-Spam-Flag: NO X-Spam-Score: -4.646 X-Spam-Level: X-Spam-Status: No, score=-4.646 tagged_above=-999 required=6.31 tests=[KAM_ASCII_DIVIDERS=0.8, KAM_LAZY_DOMAIN_SECURITY=1, RCVD_IN_DNSWL_HI=-5, RCVD_IN_MSPIKE_H3=-0.01, RCVD_IN_MSPIKE_WL=-0.01, RP_MATCHES_RCVD=-1.426] autolearn=disabled Received: from mx1-lw-us.apache.org ([10.40.0.8]) by localhost (spamd2-us-west.apache.org [10.40.0.9]) (amavisd-new, port 10024) with ESMTP id po2EdRfPrabH for ; Wed, 28 Sep 2016 18:34:17 +0000 (UTC) Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by mx1-lw-us.apache.org (ASF Mail Server at mx1-lw-us.apache.org) with SMTP id 51DF75FCA7 for ; Wed, 28 Sep 2016 18:34:17 +0000 (UTC) Received: (qmail 19628 invoked by uid 99); 28 Sep 2016 18:34:15 -0000 Received: from git1-us-west.apache.org (HELO git1-us-west.apache.org) (140.211.11.23) by apache.org (qpsmtpd/0.29) with ESMTP; Wed, 28 Sep 2016 18:34:15 +0000 Received: by git1-us-west.apache.org (ASF Mail Server at git1-us-west.apache.org, from userid 33) id BB381E03E2; Wed, 28 Sep 2016 18:34:15 +0000 (UTC) Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit From: sureshs@apache.org To: commits@trafodion.incubator.apache.org Date: Wed, 28 Sep 2016 18:34:15 -0000 Message-Id: <4150f55d7c4e436a977a8a83f57e7ebb@git.apache.org> X-Mailer: ASF-Git Admin Mailer Subject: [1/4] incubator-trafodion git commit: [TRAFODION-2235] Added sync thread epoll timeout logic and Zookeeper client thread to the monitor archived-at: Wed, 28 Sep 2016 18:34:26 -0000 Repository: incubator-trafodion Updated Branches: refs/heads/master addb9b18d -> 1e9488208 http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/c7788c05/core/sqf/monitor/linux/zootest.h ---------------------------------------------------------------------- diff --git a/core/sqf/monitor/linux/zootest.h b/core/sqf/monitor/linux/zootest.h new file mode 100644 index 0000000..90069a5 --- /dev/null +++ b/core/sqf/monitor/linux/zootest.h @@ -0,0 +1,34 @@ +/********************************************************************** +// @@@ START COPYRIGHT @@@ +// +// Licensed to the Apache Software Foundation (ASF) under one +// or more contributor license agreements. See the NOTICE file +// distributed with this work for additional information +// regarding copyright ownership. The ASF licenses this file +// to you under the Apache License, Version 2.0 (the +// "License"); you may not use this file except in compliance +// with the License. You may obtain a copy of the License at +// +// http://www.apache.org/licenses/LICENSE-2.0 +// +// Unless required by applicable law or agreed to in writing, +// software distributed under the License is distributed on an +// "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY +// KIND, either express or implied. See the License for the +// specific language governing permissions and limitations +// under the License. +// +// @@@ END COPYRIGHT @@@ +********************************************************************/ + +#ifndef ZOOTEST_H_ +#define ZOOTEST_H_ + +#define MON_ZOOCLIENT_MAIN_1 101380101 +#define MON_ZOOCLIENT_MAIN_2 101380102 +#define MON_ZOOCLIENT_MAIN_3 101380103 +#define MON_ZOOCLIENT_MAIN_4 101380104 +#define MON_ZOOCLIENT_MAIN_5 101380105 +#define MON_ZOOCLIENT_MAIN_6 101380106 + +#endif // ZOOTEST_H_ http://git-wip-us.apache.org/repos/asf/incubator-trafodion/blob/c7788c05/core/sqf/sqenvcom.sh ---------------------------------------------------------------------- diff --git a/core/sqf/sqenvcom.sh b/core/sqf/sqenvcom.sh index 8d33250..6409b35 100644 --- a/core/sqf/sqenvcom.sh +++ b/core/sqf/sqenvcom.sh @@ -676,14 +676,27 @@ export SQ_MON_ALTLOG=0 # Monitor sync thread responsiveness timeout # default 15 mins export SQ_MON_SYNC_TIMEOUT=900 + export SQ_MON_KEEPALIVE=1 export SQ_MON_KEEPIDLE=60 export SQ_MON_KEEPINTVL=6 export SQ_MON_KEEPCNT=5 -# The wait timeout is in seconds -export SQ_MON_EPOLL_WAIT_TIMEOUT=12 -export SQ_MON_EPOLL_RETRY_COUNT=15 +# Monitor sync thread epoll wait timeout is in seconds +# Currently set to 45 seconds +export SQ_MON_EPOLL_WAIT_TIMEOUT=15 +export SQ_MON_EPOLL_RETRY_COUNT=3 + +# Monitor Zookeeper client +# - A zero value disables the zclient logic in the monitor process. +# It is enabled by default in a real cluster, disabled otherwise. +# (must be disabled to debug monitor processes in a real cluster) +#export SQ_MON_ZCLIENT_ENABLED=0 +# - Session timeout in seconds defines when Zookeeper quorum determines a +# non-responsive monitor zclient which results in a Trafodion node down. +# Default is 60 seconds (1 minute) which is the maximum Zookeeper allows. +# (15 seconds longer than EPOLL timeout above). +#export SQ_MON_ZCLIENT_SESSION_TIMEOUT=60 # set to 0 to disable phandle verifier export SQ_PHANDLE_VERIFIER=1