You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@ofbiz.apache.org by Jason RJ <ja...@reast.net> on 2015/05/21 15:34:17 UTC
Catalog/Product Image Upload
Hi Folks,
I've been looking at production setup for OFBiz and the one issue I'm
getting stuck with is how to get uploaded catalog/product images
distributed across all the servers in a LB/HA setup. I've looked at
rsync, lsyncd, csync2, NFS, GlusterFS. I'm just wondering if anyone has
any experience with any of these in production and can offer a
recommendation? Maybe I'm missing a trick and there's a much easier way
to get OFBiz to push files to all servers, and avoid a
single-point-of-failure.
Many thanks in advance.
Jason
Re: Catalog/Product Image Upload
Posted by Jacques Le Roux <ja...@les7arts.com>.
Le 22/05/2015 10:02, Jason RJ a écrit :
> Thanks Jacques, I had looked at that briefly, but I assumed the uploads still go to one of the OFBiz servers, so really the images need uploaded
> separately to the content server instead?
Yes indeed. AFAIK there are no means for that OOTB. This part you need to adapt to your specific needs.
HTH
Jacques
>
> Thanks I appreciate your quick response.
>
> Jason
>
> On 21/05/2015 17:52, Jacques Le Roux wrote:
>> I think you are looking for the ofbizContentUrl Freemarker macro. The idea is to put the static resources on a "content server" to get the
>> resources from this "unique" server. Of course having LB/HA and rather a cluster for the "content server" is recommended...
>>
>> Jacques
>>
>> Le 21/05/2015 15:34, Jason RJ a écrit :
>>> Hi Folks,
>>>
>>> I've been looking at production setup for OFBiz and the one issue I'm getting stuck with is how to get uploaded catalog/product images distributed
>>> across all the servers in a LB/HA setup. I've looked at rsync, lsyncd, csync2, NFS, GlusterFS. I'm just wondering if anyone has any experience
>>> with any of these in production and can offer a recommendation? Maybe I'm missing a trick and there's a much easier way to get OFBiz to push files
>>> to all servers, and avoid a single-point-of-failure.
>>>
>>> Many thanks in advance.
>>>
>>> Jason
>>>
>>>
>
>
Re: Catalog/Product Image Upload
Posted by Deepak Dixit <de...@hotwaxsystems.com>.
Please refer catalog.proerties file to mange the image server path.
I think image.server.path (catalog.properties) works for you.
You can also set the content server path to serve content from external server at url.properties (content.url.prefix.secure and content.url.prefix.standard)
Thanks & Regards
—
Deepak Dixit
> On May 22, 2015, at 1:32 PM, Jason RJ <ja...@reast.net> wrote:
>
> Thanks Jacques, I had looked at that briefly, but I assumed the uploads still go to one of the OFBiz servers, so really the images need uploaded separately to the content server instead?
>
> Thanks I appreciate your quick response.
>
> Jason
>
> On 21/05/2015 17:52, Jacques Le Roux wrote:
>> I think you are looking for the ofbizContentUrl Freemarker macro. The idea is to put the static resources on a "content server" to get the resources from this "unique" server. Of course having LB/HA and rather a cluster for the "content server" is recommended...
>>
>> Jacques
>>
>> Le 21/05/2015 15:34, Jason RJ a écrit :
>>> Hi Folks,
>>>
>>> I've been looking at production setup for OFBiz and the one issue I'm getting stuck with is how to get uploaded catalog/product images distributed across all the servers in a LB/HA setup. I've looked at rsync, lsyncd, csync2, NFS, GlusterFS. I'm just wondering if anyone has any experience with any of these in production and can offer a recommendation? Maybe I'm missing a trick and there's a much easier way to get OFBiz to push files to all servers, and avoid a single-point-of-failure.
>>>
>>> Many thanks in advance.
>>>
>>> Jason
>>>
>>>
>
Re: Catalog/Product Image Upload
Posted by Jason RJ <ja...@reast.net>.
Thanks Jacques, I had looked at that briefly, but I assumed the uploads
still go to one of the OFBiz servers, so really the images need uploaded
separately to the content server instead?
Thanks I appreciate your quick response.
Jason
On 21/05/2015 17:52, Jacques Le Roux wrote:
> I think you are looking for the ofbizContentUrl Freemarker macro. The
> idea is to put the static resources on a "content server" to get the
> resources from this "unique" server. Of course having LB/HA and rather
> a cluster for the "content server" is recommended...
>
> Jacques
>
> Le 21/05/2015 15:34, Jason RJ a écrit :
>> Hi Folks,
>>
>> I've been looking at production setup for OFBiz and the one issue I'm
>> getting stuck with is how to get uploaded catalog/product images
>> distributed across all the servers in a LB/HA setup. I've looked at
>> rsync, lsyncd, csync2, NFS, GlusterFS. I'm just wondering if anyone
>> has any experience with any of these in production and can offer a
>> recommendation? Maybe I'm missing a trick and there's a much easier
>> way to get OFBiz to push files to all servers, and avoid a
>> single-point-of-failure.
>>
>> Many thanks in advance.
>>
>> Jason
>>
>>
Re: Catalog/Product Image Upload
Posted by Jacques Le Roux <ja...@les7arts.com>.
I think you are looking for the ofbizContentUrl Freemarker macro. The idea is to put the static resources on a "content server" to get the resources
from this "unique" server. Of course having LB/HA and rather a cluster for the "content server" is recommended...
Jacques
Le 21/05/2015 15:34, Jason RJ a écrit :
> Hi Folks,
>
> I've been looking at production setup for OFBiz and the one issue I'm getting stuck with is how to get uploaded catalog/product images distributed
> across all the servers in a LB/HA setup. I've looked at rsync, lsyncd, csync2, NFS, GlusterFS. I'm just wondering if anyone has any experience with
> any of these in production and can offer a recommendation? Maybe I'm missing a trick and there's a much easier way to get OFBiz to push files to all
> servers, and avoid a single-point-of-failure.
>
> Many thanks in advance.
>
> Jason
>
>