Skip to content

Improve performance to Zope/Plone ( Part 2 )

April 16, 2009

[ptBR]

No meu quadro atual tenho um baixo número de requisições por segundo ( rps ) de um instância sem qualquer modificação.

Resultado do teste usando a ferramenta ab do Apache:

Concurrency Level:      10
Time taken for tests:   17.862 seconds
Complete requests:      100
Requests per second:    5.60 [#/sec] (mean)
Time per request:       1786.172 [ms] (mean)

Este número está sempre em torno de 5  rps. Veja os novos resultados com o CacheFu instalado
– Instalando o CacheFu:
1 – Baixe o CacheFu para sua versão do Zope/Plone ( no meu caso usei a versão 1.1.2 );
2 – Descompacte o arquivo baixado:
# tar -xzf CacheFu-1.1.2.tgz
3 – Mova as pastas CacheSetup, CMFSquidTool, PageCacheManager e PolicyHTTPCacheManager para a pasta Products da sua instância;
# mv CacheSetup/ CMFSquidTool/ PageCacheManager/ PolicyHTTPCacheManager/ $INSTANCE_HOME/Products
4 – Reinicie a sua instância
5 – Instale o CacheSetup através do QuickInstaler do seu Plone ( caso não apareca o produto verifique compatibilidade com sua versão do Plone )

– Configurando do CacheFu
1 –  Na raíz do site acesse Portal Cache Settings;
2 –  Clique na Aba View;
3  – Habilite o CacheFu marcando o Checkbox “Enable CacheFu”
4 – No campo “Site Domains” adicione os endereços usados pra acessar o seu site ( http://site.com, http://www.site.com, http://portal.site.com … );
5 – Salve a configuração

Novo resultado do benchmarking:
Concurrency Level:      10
Time taken for tests:   2.460 seconds
Complete requests:      100
Requests per second:    40.64 [#/sec] (mean)
Time per request:       246.048 [ms] (mean)

Nós podemos ver 8x mais requisições foram processadas.

Próximo post falarei sobre melhorias na configuração do Apache.
[enUS]

Currently I’ve a low request per second ( rps ) rate for a Plone instance without any customization:

Result of test using tool ab provided by Apache:

Concurrency Level:      10
Time taken for tests:   17.862 seconds
Complete requests:      100
Requests per second:    5.60 [#/sec] (mean)
Time per request:       1786.172 [ms] (mean)

This number always keep around 5 rps.

See the new results with CacheFu installed

– Installing CacheFu:
1 – Get CacheFu for your Zope/Plone version ( in my case I used the version 1.1.2 )
2 – Decompress the file downloaded:
# tar -xzf CacheFu-1.1.2.tgz
3 – Move the folders CacheSetup, CMFSquidTool, PageCacheManager and PolicyHTTPCacheManager for Products directory of your Plone instance;
# mv CacheSetup/ CMFSquidTool/ PageCacheManager/ PolicyHTTPCacheManager/ $INSTANCE_HOME/Products
4 – Restart your instance;
5 – Install CacheSetup using Plone QuickInstaller ( if not appears the product there check compatibilitie with your plone version )

– Setup CacheFu
1 –  On site root folder open Portal Cache Setttings;
2 –  Click on Aba View;
3  – Enable CacheFu checking “Enable CacheFu”
4 – On “Site Domains” field add the addresses used to access your site ( http://site.com, http://www.site.com, http://portal.site.com … );
5 – Save Settings

New benchmarking results:
Concurrency Level:      10
Time taken for tests:   2.460 seconds
Complete requests:      100
Requests per second:    40.64 [#/sec] (mean)
Time per request:       246.048 [ms] (mean)

We can see 8x more requests processed.

Next post I’ll talk about improvements at Apache configuration.

From → Linux, Zope

Leave a Comment

Leave a Reply

Fill in your details below or click an icon to log in:

WordPress.com Logo

You are commenting using your WordPress.com account. Log Out / Change )

Twitter picture

You are commenting using your Twitter account. Log Out / Change )

Facebook photo

You are commenting using your Facebook account. Log Out / Change )

Google+ photo

You are commenting using your Google+ account. Log Out / Change )

Connecting to %s

%d bloggers like this: