<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Solr4 and ACLs  in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/solr4-and-acls/m-p/285560#M238690</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;We have an alfresco community 5.0.c environment. Previously used 3.4.d and upgraded through several versions. We created a new solr4 index from scratch after the final upgrade. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;We currently have about 1500 sites and 200 users assigned to 15 groups. We assign groups to sites as their involvement with each site requires. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;When adding a group to a site membership (or any ACL change for that matter) I notice that solr consistently takes a lot of resources (CPU and memory) while indexing the change for about 15mins! I can’t figure out why this is the case even when there are no documents in the site. It’s almost as though it has to re-index all the nodes that group has access to. Can anybody explain this behavior? What exactly is solr doing when notified of an ACL change like this? &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Whilst not hindering system performance yet I am worried that as our repo grows this will become unsustainable.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;In the alfresco core we currently have:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;300k nodes&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;307k transactions&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;56k ACLs&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;30k ACL transactions&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;server: Centos 5.4 VM, 16G RAM, 4 cores, 4GB JVM, MySQL 5.6, Tomcat 7&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Tue, 16 Jun 2015 15:09:30 GMT</pubDate>
    <dc:creator>butterman</dc:creator>
    <dc:date>2015-06-16T15:09:30Z</dc:date>
    <item>
      <title>Solr4 and ACLs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr4-and-acls/m-p/285560#M238690</link>
      <description>We have an alfresco community 5.0.c environment. Previously used 3.4.d and upgraded through several versions. We created a new solr4 index from scratch after the final upgrade. We currently have about 1500 sites and 200 users assigned to 15 groups. We assign groups to sites as their involvement with</description>
      <pubDate>Tue, 16 Jun 2015 15:09:30 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr4-and-acls/m-p/285560#M238690</guid>
      <dc:creator>butterman</dc:creator>
      <dc:date>2015-06-16T15:09:30Z</dc:date>
    </item>
    <item>
      <title>Re: Solr4 and ACLs</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/solr4-and-acls/m-p/285561#M238691</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;When re-indexing an acl solr4 pulls a json document from alfresco that includes a list of the nodes parent paths. In our case each of our groups could be members of over 1000 sites and therefore the group node had that many parents which were re-indexed every time a group was added or deleted from a site.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The fix was to stop solr indexing parent paths by adding the following two lines of code:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nmdp.setIncludePaths(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;nmdp.setIncludeParentAssociations(false);&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;to:&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;src5.0.c\projects\solr4\source\java\org\alfresco\solr\SolrInformationServer.java at line1691.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Link to updated source: &lt;/SPAN&gt;&lt;A href="https://drive.google.com/file/d/0B4zqRLvm-_xIT2Zna1lYZFZraUk/view?usp=sharing" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/0B4zqRLvm-_xIT2Zna1lYZFZraUk/view?usp=sharing&lt;/A&gt;&lt;BR /&gt;&lt;SPAN&gt;Link to patched jar: &lt;/SPAN&gt;&lt;A href="https://drive.google.com/file/d/0B4zqRLvm-_xIdTd0VHpOek11NUk/view?usp=sharing" rel="nofollow noopener noreferrer"&gt;https://drive.google.com/file/d/0B4zqRLvm-_xIdTd0VHpOek11NUk/view?usp=sharing&lt;/A&gt;&lt;BR /&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Mon, 07 Sep 2015 10:01:15 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/solr4-and-acls/m-p/285561#M238691</guid>
      <dc:creator>butterman</dc:creator>
      <dc:date>2015-09-07T10:01:15Z</dc:date>
    </item>
  </channel>
</rss>

