Return-Path: X-Original-To: apmail-ignite-dev-archive@minotaur.apache.org Delivered-To: apmail-ignite-dev-archive@minotaur.apache.org Received: from mail.apache.org (hermes.apache.org [140.211.11.3]) by minotaur.apache.org (Postfix) with SMTP id 2E13A10FE0 for ; Mon, 16 Feb 2015 14:30:35 +0000 (UTC) Received: (qmail 5604 invoked by uid 500); 16 Feb 2015 14:30:35 -0000 Delivered-To: apmail-ignite-dev-archive@ignite.apache.org Received: (qmail 5568 invoked by uid 500); 16 Feb 2015 14:30:35 -0000 Mailing-List: contact dev-help@ignite.incubator.apache.org; run by ezmlm Precedence: bulk List-Help: List-Unsubscribe: List-Post: List-Id: Reply-To: dev@ignite.incubator.apache.org Delivered-To: mailing list dev@ignite.incubator.apache.org Received: (qmail 5555 invoked by uid 99); 16 Feb 2015 14:30:34 -0000 Received: from athena.apache.org (HELO athena.apache.org) (140.211.11.136) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 14:30:34 +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 vozerov@gridgain.com designates 209.85.216.182 as permitted sender) Received: from [209.85.216.182] (HELO mail-qc0-f182.google.com) (209.85.216.182) by apache.org (qpsmtpd/0.29) with ESMTP; Mon, 16 Feb 2015 14:30:27 +0000 Received: by mail-qc0-f182.google.com with SMTP id r5so10671642qcx.13 for ; Mon, 16 Feb 2015 06:30:06 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to :content-type; bh=cbdtzF29BrTB4WnbacnMHaBFe+WX+NQEF9QTOv5Qxac=; b=kwINVXEtIsvqZz+2kvNX2CFX7wxWDxfbMBRwCIBTviHpKGIHVNwqfJJXoAVgCkE4WW hwnxDbVILmOWrrhX4hjUMnXE/W+7XjPaUWCHozsx6IX+HwTC7TLjZjz9PvBFvHa1SG23 bZPivrfzXSMc9ek8jA0kFjhMy3ecVfVQDZAq28bvkV91eh0b/MwR4MsSluALal0uaRFz d2UgiWVagYkc4Y6u+pQuo1CSrKd/2ud70fjigmqfhKS1IJpvR5VvDgdZ4s+9BXseER0X x7NfmWGSdZQTjprswIduE+xs2IK9nwKzmKPyYpxGMdkatAK0yKSNlzYs+D1yeOg9rJ27 FYKA== X-Gm-Message-State: ALoCoQmfKj98yaGyCCr1pw+xxiR+fNHmZk02QqlorkQEdf58CqOA30WWsWGakb0O1KCES9CWLU2n MIME-Version: 1.0 X-Received: by 10.140.194.139 with SMTP id p133mr1081094qha.21.1424097006603; Mon, 16 Feb 2015 06:30:06 -0800 (PST) Received: by 10.140.32.35 with HTTP; Mon, 16 Feb 2015 06:30:06 -0800 (PST) Date: Mon, 16 Feb 2015 17:30:06 +0300 Message-ID: Subject: TTL and expire time for data center replication. From: Vladimir Ozerov To: dev@ignite.incubator.apache.org Content-Type: multipart/alternative; boundary=001a114284d63464c2050f356cf5 X-Virus-Checked: Checked by ClamAV on apache.org --001a114284d63464c2050f356cf5 Content-Type: text/plain; charset=UTF-8 Hi, Currently our data center replication code in Ignite depends on the fact that DR engine will pass explicit TTL and expire time for each cache entry. This is so because earlier in GridGain it was possible to set separate TTL for each cache entry. With the latest changes we have one ExpiryPolicy per cache. Therefore, all entries will have the same expiration logic. I think we can remove explicit TTL and expire time from DR logic with the following assumptions: 1) By default receiver cache will apply it's own expiration policy for entries from remote cache assuming that caches in both data centers have the same expiration logic. 2) If it is necessary to define different expiration policy for remote cache, it could be overriden in cache plugin (separate method will be added to DR manager). This will remove lot's of spaghetty-like code from Ignite and will reduce DR entry size by 16 bytes. Any objections in this? Vladimir. --001a114284d63464c2050f356cf5--