<?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 Re: Read-only replicated server difficulties in Alfresco Archive</title>
    <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165798#M119457</link>
    <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a simpler way to make Alfresco replication with a read-only slave work? Have others done this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes there is an easier way to do this. Just have a look at this article I recently wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://cedric.bosdonnat.free.fr/wordpress/?p=87&amp;amp;lang_view=en" rel="nofollow noopener noreferrer"&gt;http://cedric.bosdonnat.free.fr/wordpress/?p=87&amp;amp;lang_view=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The principle is easy: just turn the transactions as read-only, but not using a config file. This way you can turn Alfresco in a read-only mode without having to restart it. Then all the problems of data written at the startup can be forgotten. To turn your Alfresco read-only or read-write is then only one HTTP request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
    <pubDate>Thu, 05 Jun 2008 06:15:44 GMT</pubDate>
    <dc:creator>cbosdonnat</dc:creator>
    <dc:date>2008-06-05T06:15:44Z</dc:date>
    <item>
      <title>Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165795#M119454</link>
      <description>Hi,I have two Alfresco servers, and am using rsync and mysql replication to replicate the master to the slave. The slave is set to read-only. I'm running into a series of bootstrap problems where I need to change Java bootstrap routines to not do the bootstrap operation if the instance is in read-on</description>
      <pubDate>Tue, 26 Feb 2008 16:18:53 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165795#M119454</guid>
      <dc:creator>johnwalsh</dc:creator>
      <dc:date>2008-02-26T16:18:53Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165796#M119455</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;It looks to me like repository replication can't work. The wiki sure seems to state that it does, and I'd sure like to be wrong wrong:&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;My slave instance is now proceeding through the boot process as far as the ModuleComponentHelper where the custom modules are started up. (I have two custom modules.) That work is done within a transaction. The attempt to get a transaction was failing because I have transactions configured to readOnly. My code can't skip custom module startup and still behave as desired, so I changed RetryingTransactionHelper to return a read-only transaction instead of failing when a read-write transaction is requested but the RetryingTransactionHelper's readOnly flag is set to true. My hope was that no writes would be required for the slave Alfresco instance. Unfortunately, that's not true. The following line in ModuleComponentHelper.startModule() attempts to write to the database and fails:&lt;/SPAN&gt;&lt;BR /&gt;&lt;PRE class="language-none line-numbers"&gt;&lt;CODE&gt;registryService.addProperty(moduleKeyCurrentVersion, moduleNewVersion);&lt;SPAN class="line-numbers-rows"&gt;&lt;SPAN&gt;‍&lt;/SPAN&gt;&lt;/SPAN&gt;&lt;/CODE&gt;&lt;/PRE&gt;&lt;BR /&gt;&lt;SPAN&gt;This makes it appear that the system has to be allowed to write to the database if you need to include custom modules. For reasons documented in my previous post (conflicting primary key values), the slave in a replicated system cannot be allowed to write to the database. These conflicting truths seem to imply that Alfresco repository replication can't work if you have custom modules. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Does anyone have it working? How did you address slave writes to the database with MySQL replication of the database?&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope I'm missing something, because repository replication is a really desirable feature. Any help would be appreciated. &lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Wed, 27 Feb 2008 20:20:14 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165796#M119455</guid>
      <dc:creator>johnwalsh</dc:creator>
      <dc:date>2008-02-27T20:20:14Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165797#M119456</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;I haven't gotten any further with this. Any help would really be appreciated.&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Tue, 11 Mar 2008 03:51:23 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165797#M119456</guid>
      <dc:creator>johnwalsh</dc:creator>
      <dc:date>2008-03-11T03:51:23Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165798#M119457</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi John,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;Is there a simpler way to make Alfresco replication with a read-only slave work? Have others done this?&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;Yes there is an easier way to do this. Just have a look at this article I recently wrote:&lt;/SPAN&gt;&lt;BR /&gt;&lt;A href="http://cedric.bosdonnat.free.fr/wordpress/?p=87&amp;amp;lang_view=en" rel="nofollow noopener noreferrer"&gt;http://cedric.bosdonnat.free.fr/wordpress/?p=87&amp;amp;lang_view=en&lt;/A&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;The principle is easy: just turn the transactions as read-only, but not using a config file. This way you can turn Alfresco in a read-only mode without having to restart it. Then all the problems of data written at the startup can be forgotten. To turn your Alfresco read-only or read-write is then only one HTTP request.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;I hope this helps&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 06:15:44 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165798#M119457</guid>
      <dc:creator>cbosdonnat</dc:creator>
      <dc:date>2008-06-05T06:15:44Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165799#M119458</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Cedric,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Awesome. Thanks. You can do a lot with Alfresco, if you know where to look for inspiration. Nice sleuthing!&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Thanks again,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;John&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 13:24:36 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165799#M119458</guid>
      <dc:creator>johnwalsh</dc:creator>
      <dc:date>2008-06-05T13:24:36Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165800#M119459</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;For reference, it is also possible to use JMX to set read-only mode, if you're using 2.2, 2.9C-dev or HEAD.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Regards,&lt;/SPAN&gt;&lt;BR /&gt;&lt;SPAN&gt;Jan&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Thu, 05 Jun 2008 16:24:22 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165800#M119459</guid>
      <dc:creator>janv</dc:creator>
      <dc:date>2008-06-05T16:24:22Z</dc:date>
    </item>
    <item>
      <title>Re: Read-only replicated server difficulties</title>
      <link>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165801#M119460</link>
      <description>&lt;HTML&gt;&lt;HEAD&gt;&lt;/HEAD&gt;&lt;BODY&gt;&lt;SPAN&gt;Hi Jan,&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;BLOCKQUOTE class="jive-quote"&gt;For reference, it is also possible to use JMX to set read-only mode, if you're using 2.2, 2.9C-dev or HEAD.&lt;/BLOCKQUOTE&gt;&lt;BR /&gt;&lt;SPAN&gt;That reminds me to have a serious look at JMX… Thanks for the info.&lt;/SPAN&gt;&lt;BR /&gt;&lt;BR /&gt;&lt;SPAN&gt;Cedric&lt;/SPAN&gt;&lt;/BODY&gt;&lt;/HTML&gt;</description>
      <pubDate>Fri, 06 Jun 2008 05:28:25 GMT</pubDate>
      <guid>https://connect.hyland.com/t5/alfresco-archive/read-only-replicated-server-difficulties/m-p/165801#M119460</guid>
      <dc:creator>cbosdonnat</dc:creator>
      <dc:date>2008-06-06T05:28:25Z</dc:date>
    </item>
  </channel>
</rss>

