A day in the life of an Alfresco Admin

Download Report

Transcript A day in the life of an Alfresco Admin

A Day in the Life of an Alfresco Admin
November 2013
Antonio Soler
Premier Support Engineer
Alfresco Software Ltd.
#SummitNow
A Day in the Life of an Alfresco Admin
November 2013
Antonio Soler
Premier Support Engineer
Alfresco Software Ltd.
#SummitNow
The three pillars:
Hard Drive
AppServer
DataBase
#SummitNow
#SummitNow
Automation… is possible!
You don’t have to do it all manually.
Find a robot or script that does it for you...
#SummitNow
#SummitNow
HARD DRIVE
Hard drive speed can be a decisive factor on
your system
specially if you are using
Lucene
SSD drives might be
recommendable.
#SummitNow
#SummitNow
Backups
Alfresco takes regular
backups of the
indexes but you might
need to plan the
“alf_data” backup.
Backup times are “cron” like configurable.
See file scheduled-jobs-context.xml
#SummitNow
#SummitNow
LUCENE
Lucene it keeps one set of indexes for each “store”:
It's important to maintain a “inverted pyramid”
structure on the size of index segments.
0
1
2
3
Control the indexinfo file (see wiki script to translate it
into “human readable”).
4
You can increase this number of
segments if you have a lot of
documents
#SummitNow
#SummitNow
LUCENE (cont.)
On some flavours of Linux the number of open files is
limited, check your “ulimit” and open files with “lsof”.
Keep free space for Merges!!!
Many open files on your
lucene folder may indicate
a bug in your custom
queries.
Remember to close the
resultsets.
#SummitNow
#SummitNow
SOLR
https://[host]:8443/solr/admin/cores?action=SUMMARY
( "DB transaction count" == "Index transaction count" ) →

https://[host]:8443/solr/admin/cores?action=FIX
Check the index for missing, duplicated, and extra transactions or ACL change
sets and fix any found:
Remember to install
browser’s p12 certificate
#SummitNow
#SummitNow
Read the F… logs!!!
The logs may tell you if there is
a problem in your system.
Remember to clean old logs.
You can remotely monitor
the logs and filter results
using
Log4.hubappender +
Apache Chainsaw
#SummitNow
#SummitNow
HOUSEKEEPING
Alfresco does not delete things, remove the
documents that are no longer in use to
recover disk space.
Dispose the contents of
[alf_data]/contentstore.deleted/
#SummitNow
#SummitNow
DATABASE
All metadata information about the documents,
users and permissions is on the DB.
Some DB engines have
automatic statistics calculation,
others not.
Ensure that your statistics are up
to date.
#SummitNow
#SummitNow
THE POOL
This defines in your global properties the poolsize:
db.pool.max=40 (default value)
Size this according to your concurrency!!!
You can “evict” old
connections.
#SummitNow
#SummitNow
APPSERVER
(and jvm)
maxThreads represents the maximum number of request
processing threads to be created by the HTTPConnector :
<Connector port="8080" address="localhost"
maxThreads="250" maxHttpHeaderSize="8192"
emptySessionPath="true" protocol="HTTP/1.1"
enableLookups="false" redirectPort="8443" acceptCount="100"
connectionTimeout="20000" disableUploadTimeout="true" />
This determines the maximum number of simultaneous requests that
can be handled. This by default on Tomcat is 200.
Each Share user
uses 2 sessions!
#SummitNow
JMX / RMI
Enterprise only feature:
You can connect to the JVM using JCONSOLE or
JVISUALVM to monitor the environment, local or
remotely via RMI
Changes on the
MBeans are
persistent, be careful.
#SummitNow
#SummitNow
JVM MEMORY
There is no right setting, it depends on your business
case, but you need to control the usage.
JCONSOLE or JVISUALVM can be REALLY helpful.
Generate a
heapdump if OOM
and analyze it with
Eclipse-MAT
#SummitNow
#SummitNow
JVM CPU
AGAIN: JCONSOLE or JVISUALVM can be REALLY
helpful.
Take some JSTACKS.
Hotthreads can give
you also a quick
idea.
#SummitNow
#SummitNow
ONE MORE THING…
(Steve Jobs style  )
RELEASE ANNOUNCEMENT:
SUPPORT TOOLS (add-on)
for the New Admin console
#SummitNow
SUPPORT TOOLS
•Not an official part of the product, only a add-on tool
to help you to maintain your Env and diagnose a
problem.
•Only tested and developed using Tomcat and JDK7
with current Firefox, Chrome and IE versions (sorry).
•Quick deployment and non-invasive installation,
minimal impact on the JVM on terms of memory and
CPU.
#SummitNow
Features
•Active Sessions
•System Performance
#SummitNow
Features
•Change Log Settings
•Tail System Log
#SummitNow
Features
•Thread dumps
•Scheduled Jobs
#SummitNow
Available for Alfresco 4.2 Enterprise at:
http://addons.alfresco.com
#SummitNow
Thanks for watching…

November 2013
Antonio Soler
Premier Support Engineer
Alfresco Software Ltd.
#SummitNow