Return-Path: X-Original-To: apmail-airavata-dev-archive@www.apache.org Delivered-To: apmail-airavata-dev-archive@www.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 86109D18D for ; Tue, 21 May 2013 21:04:47 +0000 (UTC) Received: (qmail 56499 invoked by uid 500); 21 May 2013 21:04:47 -0000 Delivered-To: apmail-airavata-dev-archive@airavata.apache.org Received: (qmail 56445 invoked by uid 500); 21 May 2013 21:04:47 -0000 Mailing-List: contact dev-help@airavata.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@airavata.apache.org Delivered-To: mailing list dev@airavata.apache.org Received: (qmail 56437 invoked by uid 99); 21 May 2013 21:04:47 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 21:04:47 +0000 X-ASF-Spam-Status: No, hits=1.5 required=5.0 tests=HTML_MESSAGE,RCVD_IN_DNSWL_LOW,SPF_PASS X-Spam-Check-By: apache.org Received-SPF: pass (athena.apache.org: domain of samindaw@gmail.com designates 209.85.215.46 as permitted sender) Received: from [209.85.215.46] (HELO mail-la0-f46.google.com) (209.85.215.46) by apache.org (qpsmtpd/0.29) with ESMTP; Tue, 21 May 2013 21:04:42 +0000 Received: by mail-la0-f46.google.com with SMTP id er20so1235517lab.33 for ; Tue, 21 May 2013 14:04:20 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=oQnqVmTPhJxqIoPJkjq3CNRG5Z9sXrWPvhsP5TrX7zw=; b=F+TyAli6hRz34oWrluJGXEt/Ndv555AkmGchE2HqnebePTgHECoeMgqMMK0lp4lCaa YEABNJOCKMEATuAGQnHfgixB0LSQACCce94jFU8Q3xq+gPYx2PkL3TEkPn+aEPuhGWDM TSw3YZYeM8JyBRMxBjSkvdeEDRE3JOgD22N0vp2wkWBXZ+iID9pYjV4ffDo1zTLFN+B1 LwK8QYC6nWKCpwimW3B86ybP29ElBPSDV+/HiVfqXFuDHCOOon3plaaR3QHLU0/XPYnw Zpz65VvAVIPdGrfcaAs/kivzgJ7+Cid0CsTU/iS7u6EOpyBElVSqbfXDEeeZgnD8ZTNA NwzA== X-Received: by 10.152.37.164 with SMTP id z4mr2350501laj.21.1369170260683; Tue, 21 May 2013 14:04:20 -0700 (PDT) MIME-Version: 1.0 Received: by 10.112.81.6 with HTTP; Tue, 21 May 2013 14:04:00 -0700 (PDT) In-Reply-To: References: From: Saminda Wijeratne Date: Tue, 21 May 2013 17:04:00 -0400 Message-ID: Subject: Re: Persisting GFac job data To: dev@airavata.apache.org Content-Type: multipart/alternative; boundary=089e0141a73a06800a04dd40cbc9 X-Virus-Checked: Checked by ClamAV on apache.org --089e0141a73a06800a04dd40cbc9 Content-Type: text/plain; charset=ISO-8859-1 But I thought the providers are part of the GFac (not as a separate service). If not then the providers should report to GFac. Orelse there is no way the GFac knows what status to update which data to update etc. Does the current GFac implementation support this? On Tue, May 21, 2013 at 4:47 PM, Amila Jayasekara wrote: > I think that should be handled at a more upper layer like Workflow > Interpretter or GFac. In FT perspective it is better if providers are > stateless. One reason is we dont have control over some providers and and > there will be many places writing to disk if we implement the persistence > logic at provider level. > > Thanks > Amila > > > On Tue, May 21, 2013 at 4:39 PM, Saminda Wijeratne >wrote: > > > On Tue, May 21, 2013 at 4:36 PM, Amila Jayasekara > > wrote: > > > > > On Tue, May 21, 2013 at 3:51 PM, Saminda Wijeratne > > >wrote: > > > > > > > Thanks for the feedback Amila. a few comments inline > > > > > > > > > > > > On Tue, May 21, 2013 at 12:29 PM, Amila Jayasekara > > > > wrote: > > > > > > > > > Hi Saminda, > > > > > > > > > > Great suggestion. Also +1 for Dhanushka's proposal to have > > > > > serialize/de-serilized data. > > > > > Few suggestions, > > > > > 1. In addition to successful/error statuses we need other status > for > > > > nodes > > > > > & workflows > > > > > and workflows. > > > > > E . g :- > > > > > node - started, submitted, in-progress, failed, successful etc > ... > > > > > > > > > Sorry if I was too vague. Yes we have more fine-grain statuses for > > > workflow > > > > and node[1]. We will have a much fine-grained level of granuality > for a > > > > GFacJob status. > > > > public static enum GFacJobStatus{ > > > > SUBMITTED, //job is submitted, possibly waiting to start > > > executing > > > > EXECUTING, //submitted job is being executed > > > > CANCELLED, //job was cancelled > > > > PAUSED, //job was paused > > > > WAITING_FOR_DATA, // job is waiting for data to continue > > > executing > > > > FAILED, // error occurred while job was executing and the job > > > > stopped > > > > FINISHED, // job completed successfully > > > > UNKNOWN // unknown status. lookup the metadata for more > > details. > > > > } > > > > > > > > > > > > 2. This data will be useful in implementing FT and Load Balancing in > > each > > > > > component. Sometime back we had discussions to make GFac stateless. > > So > > > > who > > > > > is going to populate this data structure and persist it ? > > > > > > > > > That is a very good question... :). This summer is going to be a long > > > > one... ;) > > > > > > > > > > What I meant is which component is doing persistence ? (GFac or WF > > > Interpretter). Not the actual person who is going to implement it :). > > > > > hih hih.... > > Well its going to be whatever the provider respondible for managing the > job > > lifecycle. For example GRAMProvider should be responsible for recording > all > > the data relating to the GRAM jobs its working with. > > > > > > > > > > > > > > > > 1. > > > > > > > > > > > > > > https://svn.apache.org/repos/asf/airavata/trunk/modules/workflow-model/workflow-model-core/src/main/java/org/apache/airavata/workflow/model/graph/Node.java > > > > > > > > > > > > > > Thanks > > > > > Amila > > > > > > > > > > > > > > > On Tue, May 21, 2013 at 11:39 AM, Saminda Wijeratne < > > > samindaw@gmail.com > > > > > >wrote: > > > > > > > > > > > Thats is an excellent idea. We can have the job data field to be > > the > > > > > > designated GFac job serialized data. The whatever GFacProvider > > should > > > > > > adhere to it. > > > > > > > > > > > > I'm still inclined to have the rest of the fields to ease of > > querying > > > > for > > > > > > the required data. For example if we wanted all attempts on > > executing > > > > > for a > > > > > > particular node of a workflow or if we wanted to know which > > > application > > > > > > descriptions are faster in execution or more reliable etc. we can > > let > > > > the > > > > > > query language deal with it. wdyt? > > > > > > > > > > > > > > > > > > On Tue, May 21, 2013 at 11:24 AM, Danushka Menikkumbura < > > > > > > danushka.menikkumbura@gmail.com> wrote: > > > > > > > > > > > > > Saminda, > > > > > > > > > > > > > > I think the data container does not need to have a generic > > format. > > > We > > > > > can > > > > > > > have a base class that facilitate object > > > > serialization/deserialization > > > > > > and > > > > > > > let specific meta data structure implement them as required. We > > get > > > > the > > > > > > > Registry API to serialize objects and save them in a meta data > > > table > > > > > > (with > > > > > > > just two columns?) and to deserialize as they are loaded off > the > > > > > > registry. > > > > > > > > > > > > > > Danushka > > > > > > > > > > > > > > > > > > > > > On Tue, May 21, 2013 at 8:34 PM, Saminda Wijeratne < > > > > samindaw@gmail.com > > > > > > > >wrote: > > > > > > > > > > > > > > > It has being apparent more and more that saving the data > > related > > > to > > > > > > > > executing a jobs from the GFac can be useful for many reasons > > > such > > > > > as, > > > > > > > > > > > > > > > > debugging > > > > > > > > retrying > > > > > > > > to make smart decisions on reliability/cost etc. > > > > > > > > statistical analysis > > > > > > > > > > > > > > > > Thus we thought of saving the data related to GFac jobs in > the > > > > > registry > > > > > > > in > > > > > > > > order to facilitate feature such as above in the future. > > > > > > > > > > > > > > > > However a GFac job is potentially any sort of computing > > resource > > > > > access > > > > > > > > (GRAM/UNICORE/EC2 etc.). Therefore we need to come up with a > > > > > > generalized > > > > > > > > data structure that can hold the data of any type of > resource. > > > > > > Following > > > > > > > > are the suggested data to save for a single GFac job > execution, > > > > > > > > > > > > > > > > *experiment id, workflow instance id, node id* - pinpoint the > > > node > > > > > > > > execution > > > > > > > > *service, host, application description ids *- pinpoint the > > > > > descriptors > > > > > > > > responsible > > > > > > > > *local job id* - the unique job id retrieved/generated per > > > > execution > > > > > > > > [PRIMARY KEY] > > > > > > > > *job data* - data related executing the job (eg: the rsl in > > GRAM) > > > > > > > > *submitted, completed time* > > > > > > > > *completed status* - whether the job was successfull or ran > in > > to > > > > > > errors > > > > > > > > etc. > > > > > > > > *metadata* - custom field to add anything user wants > > > > > > > > > > > > > > > > Your feedback is most welcome. The API related changes will > > also > > > be > > > > > > > > discussed once we have a proper data structure. We are hoping > > to > > > > > > > implement > > > > > > > > this within next few days. > > > > > > > > > > > > > > > > Thanks, > > > > > > > > Saminda > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > --089e0141a73a06800a04dd40cbc9--