[opencms-dev] Queue time is getting longer
Lorenzo Sala
troubador at gmail.com
Thu Dec 3 15:48:10 CET 2009
We understood what is happening.
We use the export server of CMS of base repository from where we copy the
files from to different servers (a different server for every Project).
To better explain this, on the publishing servers we have all the project in
a tree structure like this:
/sites/site1
/sites/site2
/sites/site3
and every time we publish a document the new file goes in the site1 or site2
or site3 depending on the project it belongs to.
every 5 minutes on that server we check wich pages have been created or
changed and for every site we ftp the modified files on the belonging
servers.
/site/site1 will ftp to www.site1.com/
/site/site2 will ftp to www.site2.com/
/site/site3 will ftp to www.site3.com/
Our end users will never see the real cms publishing server, they will just
go on www.site1.com and see the new or updated files when they are found and
copied by the batch every 5 minutes.
For this reason the CmsOnDemandStaticExportHandler can't be used since the
cms publishing server will never receive a request for a file and it wont
generate it.
What can we do?
Lo'
Lorenzo Sala wrote:
>
> Hello Achim,
> we tried to use the CmsOnDemandStaticExportHandler.
> Rebooted, tried creating a new file and publishing it. It took 1 second to
> run the publishing and this is the log:
>
> Publishing resources ...
> Publishing files ...
> ( 1 / 1 ) Publishing file /prova20091203.html ... o.k.
> ... finished publishing files
> Statistics: published files: 1, published folders: 0, deleted folders: 0,
> duration: 00:00:00
> ... the resources have been published
> Updating search index "Online project EN (VFS)"
> ( 1 ) Indexing file /sites/extranet/prova20091203.html ... o.k.
> ... finished updating search index "Online project EN (VFS)"
> Updating search index "Online project DE (VFS)"
> ( 1 ) Indexing file /sites/extranet/prova20091203.html ... o.k.
> ... finished updating search index "Online project DE (VFS)"
>
> The problem is that on the export server the file doesn't exist, it didn't
> publish it but it says it did.
>
> Are we doing something wrong?
>
> Lo'
>
>
>
> Achim Westermann wrote:
>>
>> Hi Lo,
>>
>> that is not normal behaviour of OpenCms.
>>
>> I assume you are using the CmsAfterPublishStaticExportHandler or a custom
>> similar implementation in opencms-importexport.xml. If you are
>> free in your setup (no "OpenCms MUST NOT BE IN PRODUCTION Mr. knowitalls
>> in charge") try using CmsOnDemandStaticExportHandler.
>>
>>
>> kind regards,
>>
>> Achim
>>
>> Lorenzo Sala wrote:
>>> Hi everyone,
>>> it's 4 months now that we have implemented OpenCMS in
>>> our
>>> web sites and we've been creating new Projects since then. We are
>>> getting
>>> worried about two major problems now:
>>>
>>> 1) All the projects use the same queue to publish, so if many users
>>> sends a
>>> request to publish a document while working on different projects the
>>> queue
>>> tends to get really long.
>>>
>>> 2) The time to processa each single publishing request is getting
>>> longer, it
>>> was 5 minutes and now it's 13 minutes.
>>>
>>> Is there a way to better distribute or make faster the publishing queue?
>>> The
>>> publishing time of a single request doesn't change if you asked to
>>> publish 1
>>> or 500 files, now they all take 13 minutes, meaning that if 5 people
>>> sent a
>>> publishing request the last one will have to wait about 1 hour to see it
>>> published.
>>>
>>> Any suggestion will be greatly appreciated.
>>>
>>> Lo'
>>>
>>>
>>
>>
>> _______________________________________________
>> This mail is sent to you from the opencms-dev mailing list
>> To change your list options, or to unsubscribe from the list, please
>> visit
>> http://lists.opencms.org/mailman/listinfo/opencms-dev
>>
>>
>
>
--
View this message in context: http://old.nabble.com/Queue-time-is-getting-longer-tp26625696p26627127.html
Sent from the OpenCMS - Dev mailing list archive at Nabble.com.
More information about the opencms-dev
mailing list