Re: OFBiz in cluster, load balance, different availability zones

2018-03-06 Thread Michael Brohl
How does an in-memory database like Redis hel with the setup of 
clustering/load balancing?


Regards,

Michael

Am 07.03.18 um 02:07 schrieb Shi Jinghai:

Or Redis[1] with Redisson[2]?

1. https://github.com/antirez/redis
2. 
https://github.com/redisson/redisson/wiki/14.-Integration%20with%20frameworks#145-tomcat-redis-session-manager

-邮件原件-
发件人: biletnikov@ [mailto:gmail.com biletni...@gmail.com]
发送时间: 2018年3月6日 20:53
收件人: dev@ofbiz.apache.org
主题: OFBiz in cluster, load balance, different availability zones

Hi all, I still support OFBiz 12.04 + some custom extensions for one customer.

Now, we need to launch OFBiz in a cluster or it is better to say on different 
machines in different availability zones in AWS infrastructure.

The main problem arises here is the http session replications among all 
machines.
At least, in OFBiz 12.04 we have a clustering solution for Tomcat container 
using SimpleTcpCluster.
It is the way when all instances must share sessions via broadcasting IP 
packets, although this way maybe good for clustering on the one server 
instances, but it will not work in cloud infrastructure and in different 
availability zones.  Because broadcasting IP packets are very low level 
communication which is not supported in the cloud services.

Another solutions, which Tomcat proposes for session replication are:

- use shared file system and common directory to store and read sessions

- use shared database to replicate sessions

I am working on the support for these two solutions in Catalina container.

However, I would like to ask you, maybe we have another solution in OFBiz to 
work with ?

Thank you.






smime.p7s
Description: S/MIME Cryptographic Signature


Re: [Discussion] Creating a unified service-library component

2018-03-06 Thread Taher Alkhateeb
Hi Paul,

Yeah I am proposing one big component to house all services. The reason is
that it makes no sense in separating them because they are tightly coupled
and depend on each other heavily (because they share the full data model)

As I mentioned in my first email, we can perhaps create a new component and
call it "service-library". Inside this component we follow a similar
pattern to the datamodel component in organizing the files.

To me the big win out of this move is that all the complexity we have right
now in figuring out the dependencies between components almost completely
goes away. Remember that big spaghetti diagram in the wiki for component
dependencies? We get rid of that.

Did I understand your question correctly and WDYT?

On Mar 7, 2018 5:45 AM, "Paul Foxworthy"  wrote:

Thanks Taher, I agree with your idea.

I agree that most services can and should be decoupled from user
interfaces. As you say if a service exists only to support a UI, it can
stay with the UI component. Services that only make sense to support AJAX
calls would be one example.

If most services move somewhere else, should there be one monolithic
component, or several? So where we now have accounting, content and so on,
would we have accounting-ui, accounting, content-ui, content and so on?
Possibly accounting-services, accounting-ui etc, but -services is
long-winded and I think not very useful.

Cheers

Paul Foxworthy

--
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Australia

Phone: +61 3 9585 6788
Web: http://www.coherentsoftware.com.au/
Email: i...@coherentsoftware.com.au


Re: [Discussion] Creating a unified service-library component

2018-03-06 Thread Paul Foxworthy
Thanks Taher, I agree with your idea.

I agree that most services can and should be decoupled from user
interfaces. As you say if a service exists only to support a UI, it can
stay with the UI component. Services that only make sense to support AJAX
calls would be one example.

If most services move somewhere else, should there be one monolithic
component, or several? So where we now have accounting, content and so on,
would we have accounting-ui, accounting, content-ui, content and so on?
Possibly accounting-services, accounting-ui etc, but -services is
long-winded and I think not very useful.

Cheers

Paul Foxworthy

-- 
Coherent Software Australia Pty Ltd
PO Box 2773
Cheltenham Vic 3192
Australia

Phone: +61 3 9585 6788
Web: http://www.coherentsoftware.com.au/
Email: i...@coherentsoftware.com.au


Re: OFBiz in cluster, load balance, different availability zones

2018-03-06 Thread Shi Jinghai
Or Redis[1] with Redisson[2]?

1. https://github.com/antirez/redis
2. 
https://github.com/redisson/redisson/wiki/14.-Integration%20with%20frameworks#145-tomcat-redis-session-manager

-邮件原件-
发件人: biletnikov@ [mailto:gmail.com biletni...@gmail.com] 
发送时间: 2018年3月6日 20:53
收件人: dev@ofbiz.apache.org
主题: OFBiz in cluster, load balance, different availability zones

Hi all, I still support OFBiz 12.04 + some custom extensions for one customer. 

Now, we need to launch OFBiz in a cluster or it is better to say on different 
machines in different availability zones in AWS infrastructure. 

The main problem arises here is the http session replications among all 
machines.
At least, in OFBiz 12.04 we have a clustering solution for Tomcat container 
using SimpleTcpCluster.
It is the way when all instances must share sessions via broadcasting IP 
packets, although this way maybe good for clustering on the one server 
instances, but it will not work in cloud infrastructure and in different 
availability zones.  Because broadcasting IP packets are very low level 
communication which is not supported in the cloud services.

Another solutions, which Tomcat proposes for session replication are:

- use shared file system and common directory to store and read sessions 

- use shared database to replicate sessions

I am working on the support for these two solutions in Catalina container.

However, I would like to ask you, maybe we have another solution in OFBiz to 
work with ?

Thank you.



OFBiz in cluster, load balance, different availability zones

2018-03-06 Thread biletnikov
Hi all, I still support OFBiz 12.04 + some custom extensions for one customer. 

Now, we need to launch OFBiz in a cluster or it is better to say on different 
machines in different availability zones in AWS infrastructure. 

The main problem arises here is the http session replications among all 
machines.
At least, in OFBiz 12.04 we have a clustering solution for Tomcat container 
using SimpleTcpCluster.
It is the way when all instances must share sessions via broadcasting IP 
packets, although this way maybe good for clustering on the one server 
instances, but it will not work in cloud infrastructure and in different 
availability zones.  Because broadcasting IP packets are very low level 
communication which is not supported in the cloud services.

Another solutions, which Tomcat proposes for session replication are:

- use shared file system and common directory to store and read sessions 

- use shared database to replicate sessions

I am working on the support for these two solutions in Catalina container.

However, I would like to ask you, maybe we have another solution in OFBiz to 
work with ?

Thank you.