[ 
https://issues.apache.org/jira/browse/GOSSIP-88?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16058050#comment-16058050
 ] 

ASF GitHub Bot commented on GOSSIP-88:
--------------------------------------

Github user edwardcapriolo commented on a diff in the pull request:

    https://github.com/apache/incubator-gossip/pull/55#discussion_r123338782
  
    --- Diff: 
gossip-base/src/main/java/org/apache/gossip/replication/Replicable.java ---
    @@ -0,0 +1,31 @@
    +/*
    + * 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.
    + */
    +package org.apache.gossip.replication;
    +
    +import com.fasterxml.jackson.annotation.JsonTypeInfo;
    +import org.apache.gossip.LocalMember;
    +import org.apache.gossip.model.Base;
    +
    +// TODO: 6/21/17 java doc
    +@JsonTypeInfo(
    --- End diff --
    
    This should live in the CrdtModule so that we do not have JSON 
serialization stuff spread across the project.


> Data Replication Control
> ------------------------
>
>                 Key: GOSSIP-88
>                 URL: https://issues.apache.org/jira/browse/GOSSIP-88
>             Project: Gossip
>          Issue Type: New Feature
>            Reporter: Mirage Abeysekara
>            Assignee: Mirage Abeysekara
>              Labels: gsoc2017
>
> Currently shared data and per node data get replicated on all nodes. It is 
> better to have data replication control with following requirements
> * Data should never get replicated
> * Data should only get replicated on given set of nodes
> * Data should only replicated on its Datacenter
> In implementation the AbstractActiveGossiper is currently sending its shared 
> data and per node data to a randomly selected live member. To control this 
> replication we add a new property to the message (eg: SharedDataMessage  has 
> a property which says whether this datum need to be replicated or not with a 
> given member.) and use that property in the AbstractActiveGossiper when 
> sending data to a member.



--
This message was sent by Atlassian JIRA
(v6.4.14#64029)

Reply via email to