12-02-2017 03:57 AM
SOLR 4 subsystem includes by default following scheduled jobs:
search.indexBackupJobDetail > index.backup.cronExpression=0 0 3 * * ?
search.alfrescoCoreBackupJobDetail > solr.backup.alfresco.cronExpression=0 0 2 * * ?
search.archiveCoreBackupJobDetail > solr.backup.archive.cronExpression=0 0 4 * * ?
I've been trying to guess what backup is done by everyone, but I've not been able to follow all the threads. Probably, this could fit the following folders:
/opt/alf_data/solr4/content
/opt/alf_data/solr4/index/archive
/opt/alf_data/solr4/index/workspace
But then, default cron expressions have no sense for me.
Is this documented in any place?
12-04-2017 04:53 AM
You are misunderstanding what contentStoreCleanerJobDetail does. It does not cause any new entries in archive SOLR indexes to be created. When content is moved from contentstore into contentstore.deleted, it has already been removed from the archive (or it has never been there in case the content was not archived / transferred into the trash can). So there is no competition between the contentStoreCleanerJobDetail and the archive index backup, if that is what you find weird.
12-02-2017 05:17 AM
Not sure exact things about this stuff, but if you analyse below files you will definitely get an idea.
community-edition-old/solr-backup-context.xml at master · Alfresco/community-edition-old · GitHub
community-edition-old/SolrBackupJob.java at master · Alfresco/community-edition-old · GitHub
community-edition-old/SolrBackupClient.java at master · Alfresco/community-edition-old · GitHub
12-02-2017 06:43 AM
Thanks for your comments.
I analysed those source files and also the ones related with Lucene. It looks like search.indexBackupJobDetail is not used anymore, as it was only relevant for Lucene.
So in current versions we have a backup for both SOLR cores: alfresco and archive. The first one is performed at 2:00 AM and the second one at 4:00 AM. This last scheduling happens at the same time than contentStoreCleanerJobDetail, which is moving files from contentstore to contentstore.deleted. So we have Alfresco backing archive SOLR indexes and creating new entries in archive SOLR indexes at the same time.
It could be a designed behaviour but I found it weird.
12-04-2017 04:53 AM
You are misunderstanding what contentStoreCleanerJobDetail does. It does not cause any new entries in archive SOLR indexes to be created. When content is moved from contentstore into contentstore.deleted, it has already been removed from the archive (or it has never been there in case the content was not archived / transferred into the trash can). So there is no competition between the contentStoreCleanerJobDetail and the archive index backup, if that is what you find weird.
Explore our Alfresco products with the links below. Use labels to filter content by product module.