Hi Gayan,

On Tue, Jun 7, 2016 at 12:11 PM, Gayan Gunarathne <[email protected]> wrote:

>
> Do we have option get the update only if the changes happen? Without doing
> a loop in a particular period. Specially this will be needed for the multi
> tenant scenario to minimize the cpu utilization.
>

>From the Worker's POV it's not possible to detect if the Manager updated
any artifacts, unless there is a cluster message (which doesn't get
published if SVNDepSync is disabled). AFAIK this kind of a messaging model
would be included in C5.


>
>>
>>>
>>> ​
>>> The problem with these two approaches is that it depends on a single GW
>>> manager node. For the push method, multiple GW managers should not
>>> repeatedly do Rsync calls to the workers. In the pull method, if multiple
>>> GW manager nodes are present (and fronted with a load balancer with
>>> Active/Passive failover), they should have the artifacts synchronized. This
>>> could be possible using a hostPath volume between the GW Manager pod
>>> replicas however, it is yet to be tested.
>>>
>>> Additionally, Kubernetes supports a volume plugin named Git Volume [2],
>>> which is basically an emptyDir volume with an initial "git clone" command
>>> done on the provided remote repository.
>>>
>>
>
> Can we do it with docker containers perspective without tightly coupled to
> Kubernetes. Can we use container mounts to achieve this? If we can use that
> we can use it with docker compose and mesosphere etc.
>

Docker volumes are different from Kubernetes volumes, and it's not easy to
transfer volumes between nodes, when Kubernetes decides to move the pods or
spawn new replicas in different nodes. IMO the approach should be platform
specific.



Regards,
Chamila de Alwis
Committer and PMC Member - Apache Stratos
Software Engineer | WSO2 | +94772207163
Blog: code.chamiladealwis.com
_______________________________________________
Architecture mailing list
[email protected]
https://mail.wso2.org/cgi-bin/mailman/listinfo/architecture

Reply via email to