SlideShare a Scribd company logo
Alfrescoクラスタリング入門
- Alfresco勉強会 第9回 -




                                     2012/8/29 @mryoshio




                      Copyright 2012 tachibanakikaku.com. All rights reserved.
目次

■ 自己紹介
■ Alfresco
■ クラスタリング
■ クラスタリングの設定
■ 動作確認
■ 振り返り
■ おまけ
自己紹介

■ 仕事
  ‣   Alfresco ... カスタマイズやサポート

  ‣   Liferay ... カスタマイズやサポート


■ それ以外
  ‣   Alfresco ... https://www.facebook.com/AlfrescoUserJP の管理

  ‣   Ruby,Python,Heroku,GAE,AWS等で遊ぶ
Alfresco

■ 概要
  ‣   英Alfresco社が提供するエンタープライズコンテンツ管理(ECM)の為のオープンソースソフ
      トウェア。コンテンツ管理,Webコンテンツ管理,コラボレーションなどを低コストで導入で
      きる


■ 競合
  ‣   SharePoint ... Microsoft社製のコラボレーションに重点を置いたコンテンツ管理ソフトウェア

  ‣   Documentum ... EMC社製の高機能なコンテンツ管理ソフトウェア


■ 特徴
  ‣   Community版(無償)とEnterprise版(サブスクリプション購入)が存在

  ‣   WebScriptを使い,RESTインターフェースを簡単に追加できる

  ‣   今ならクラウド環境にあるAlfresco in the cloudで10GBのストレージを無料利用可能

      ➡ http://www.alfresco.com/cloud ※フリーでない(会社等の)Eメールアドレスが必要
クラスタリング
考えよう

■ よくあるクラスタリングの対象
  ‣   ロードバランサ

  ‣   Web / AP / DB サーバ

  ‣   ネットワーク


■ Alfrescoの場合
  ‣   ?

  ‣   ?

  ‣   ?
Alfrescoの冗長化ポイント

■ Web / AP / DB サーバ
■ JLANキャッシュ
■ クライアントセッション
■ コンテンツストア
■ キャッシュ
■ Luceneインデクス
通常の構成




 Content Store
                  MySQL /
                 PostgreSQL
    Cache




    INDEX
冗長化してみた図

  サーバA                         サーバB


 Content Store                Content Store



    Cache                        Cache




    INDEX                        INDEX




                  MySQL /
                 PostgreSQL
冗長化したもの


                                   内容



              Alfrescoのコンテンツが格納されている。ファイルシステム上、 ${dir.root}/
コンテンツストア
              contentstoreに存在する。



  キャッシュ       インメモリのJavaオブジェクトキャッシュ。L2キャッシュ。



              Lucene検索で利用するインデクス。ファイルシステム上、${dir.root}/
Luceneインデクス
              lucene-indexesに存在する。
クラスタリングの設定
環境

■ OS
   ‣   Max OSX 10.7.4(Lion) ... Primary Alfresco

   ‣   Ubuntu 10.04.4 LTS(lucid) ... Secondary Alfresco


■ Alfresco
   ‣   Community 4.0.e(Custom Install)

   ‣   Apache Tomcat 6.0.35


■ Database
   ‣   MySQL Community Edition 5.1.49
変更ファイル


                                              対象ファイル



              shared/classes/alfresco-global.properties
コンテンツストア
              shared/classes/alfresco/extension/replicating-content-services-context.xml



              shared/classes/alfresco-global.properties
  キャッシュ
              shared/classes/alfresco/extension/ehcache-custom.xml



Luceneインデクス   shared/classes/alfresco-global.properties
コンテンツストア

■ alfresco-global.properties
   ‣   dir.rootの設定

       ➡ サーバA: サーバBから見える場所を自コンテンツストアに設定


       ➡ サーバB: サーバAから見える場所を自コンテンツストアに設定


■ replicating-content-services-context.xml
   ‣   extension/に.sampleファイルとして存在するのでそれをコピー

   ‣   localDriveContentStoreとnetworkContentStoreの設定

       ➡ サーバA: local をサーバAの${dir.root}/contentstoreに設定,network をサーバBのものに設定


       ➡ サーバB: local をサーバBの ${dir.root}/contentstoreに設定,network をサーバAのものに設定
キャッシュ

■ alfresco-global.properties
   ‣   JGroupsで利用するクラスタ名,利用プロトコルの設定

       ➡ Community Editionで使えない気がするけど念のため入れてみた


■ ehcache-custom.xml
   ‣   extension/に.sample.clusterファイルとして存在するのでそれをコピー
Luceneインデクス

■ alfresco-global.properties
   ‣   インデクストラッキング(index.tracking.cronExpression)設定

       ➡ 0 0/2 * * * ? (2分毎)


   ‣   インデクスリカバリ(index.recovery.mode)の設定

       ➡ AUTO
動作確認
処理内容

■ コンテンツ操作
 ‣   サーバAで新規コンテンツをアップロード

 ‣   サーバBで検索

 ‣   サーバBでコンテンツを削除

 ‣   サーバAで検索


■ ユーザ操作
 ‣   サーバBで新規ユーザを作成

 ‣   当該ユーザを使いサーバAへログイン


■ コンテンツストア
 ‣   ファイルシステム上で2つのAlfrescoインスタンスのコンテンツストアの内容を比較
振り返り
今回の内容

■ Alfresco
■ クラスタリング
■ クラスタリングの設定
■ 動作確認
おまけ
参考情報

■ 今日のファイル群はここにあります
  ‣   https://github.com/mryoshio/AlfrescoStudy/tree/master/clustering


■ 参考URL
  ‣   http://www.slideshare.net/alfresco/06192008-high-availability-clustering-with-alfresco

  ‣   http://wiki.alfresco.com/wiki/Cluster_Configuration_V2.1.3_and_Later
Copyright 2012 tachibanakikaku.com. All rights reserved.

More Related Content

KEY
AlfrescoとSolr(中編)
PDF
PostgreSQLをKubernetes上で活用するためのOperator紹介!(Cloud Native Database Meetup #3 発表資料)
PDF
Apache Bigtop3.2 (仮)(Open Source Conference 2022 Online/Hiroshima 発表資料)
PDF
不揮発メモリ(NVDIMM)とLinuxの対応動向について
PDF
Db2 v11.5.4 高可用性構成 & HADR 構成パターンご紹介
PDF
[Pgday.Seoul 2018] Greenplum의 노드 분산 설계
PPTX
Securing Hadoop with Apache Ranger
PDF
Machine configoperatorのちょっとイイかもしれない話
AlfrescoとSolr(中編)
PostgreSQLをKubernetes上で活用するためのOperator紹介!(Cloud Native Database Meetup #3 発表資料)
Apache Bigtop3.2 (仮)(Open Source Conference 2022 Online/Hiroshima 発表資料)
不揮発メモリ(NVDIMM)とLinuxの対応動向について
Db2 v11.5.4 高可用性構成 & HADR 構成パターンご紹介
[Pgday.Seoul 2018] Greenplum의 노드 분산 설계
Securing Hadoop with Apache Ranger
Machine configoperatorのちょっとイイかもしれない話

What's hot (20)

PDF
Linux-HA Japanプロジェクトのこれまでとこれから
PDF
Terraform
PDF
第4回Linux-HA勉強会資料 Pacemakerの紹介
PDF
Best Practices for Getting Started with NGINX Open Source
PDF
Alfresco勉強会#18 alfrescoのバックアップとリストア
PDF
Best Practices of Infrastructure as Code with Terraform
PDF
猿でもわかる Helm
PDF
IT Automation with Ansible
PDF
NiFi 시작하기
PDF
Auditing and Monitoring PostgreSQL/EPAS
 
PDF
Terraform
PDF
Ceph Object Storage Performance Secrets and Ceph Data Lake Solution
PPTX
Terraform training 🎒 - Basic
PDF
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
PPTX
Prometheus入門から運用まで徹底解説
PDF
Oracle GoldenGate 19c を使用した 簡単データベース移行ガイド_v1.0
PDF
Introduction to IAC and Terraform
PPTX
Terraform
PDF
[오픈소스컨설팅]RHEL7/CentOS7 Pacemaker기반-HA시스템구성-v1.0
PDF
Pacemaker 操作方法メモ
Linux-HA Japanプロジェクトのこれまでとこれから
Terraform
第4回Linux-HA勉強会資料 Pacemakerの紹介
Best Practices for Getting Started with NGINX Open Source
Alfresco勉強会#18 alfrescoのバックアップとリストア
Best Practices of Infrastructure as Code with Terraform
猿でもわかる Helm
IT Automation with Ansible
NiFi 시작하기
Auditing and Monitoring PostgreSQL/EPAS
 
Terraform
Ceph Object Storage Performance Secrets and Ceph Data Lake Solution
Terraform training 🎒 - Basic
[오픈소스컨설팅] 쿠버네티스와 쿠버네티스 on 오픈스택 비교 및 구축 방법
Prometheus入門から運用まで徹底解説
Oracle GoldenGate 19c を使用した 簡単データベース移行ガイド_v1.0
Introduction to IAC and Terraform
Terraform
[오픈소스컨설팅]RHEL7/CentOS7 Pacemaker기반-HA시스템구성-v1.0
Pacemaker 操作方法メモ
Ad

Viewers also liked (8)

KEY
Alfresco勉強会20120829: やさしいShareダッシュレットの作り方
PPT
Alfrescoのバックアップとレストア
PDF
【Alfresco勉強会】インストール手順書(windows azure)
PPTX
メタプログラミングRuby勉強会#7(fluentプラグイン)
PDF
20130925 alfresco study18performancetuning
PDF
企業のためのコンテンツプラットホーム Alfresco
PPTX
Alfresco tuning part2
PPTX
Alfresco tuning part1
Alfresco勉強会20120829: やさしいShareダッシュレットの作り方
Alfrescoのバックアップとレストア
【Alfresco勉強会】インストール手順書(windows azure)
メタプログラミングRuby勉強会#7(fluentプラグイン)
20130925 alfresco study18performancetuning
企業のためのコンテンツプラットホーム Alfresco
Alfresco tuning part2
Alfresco tuning part1
Ad

Similar to Alfrescoクラスタリング入門 (20)

PDF
VarnishCache入門Rev2.1
PDF
Oracle cloud infrastructure shared file service comparison 20181019 ss
PPT
play framework 勉強会 in 関西
PDF
ゲームのインフラをAwsで実戦tips全て見せます
PDF
201803_EC-CUBE開発進捗説明会_3_カスタマイズ
PDF
PHP開発者のためのNoSQL入門
PDF
Oci file storage service deep dive 20181001 ss
PDF
Asset Pipeline for Perl
PDF
B 8スポンサー講演資料 osnexus steven umbehocker (アファーム・ビジネスパートナーズ株)
PDF
B 8スポンサー講演資料 osnexus steven umbehocker (アファーム・ビジネスパートナーズ株)
PDF
OSC2011Tokyo/Fall OpenStack Swift入門
PDF
LINEのMySQL運用について
PDF
OpenStack Object Storage; Usage
PDF
OSC2012 Nagoya - OpenStack - Storage System; Overview
PDF
PPTX
開発者向けAlfrescoのご紹介(2013/03/27 JJUG ナイトセミナー「Java製OSS特集」発表資料)
PDF
Jjug springセッション
PDF
Red Hat OpenShift Container Storage
PPTX
Cloudstack user group meeting in osaka
PDF
How to use Ceph RBD as CloudStack Primary Storage
VarnishCache入門Rev2.1
Oracle cloud infrastructure shared file service comparison 20181019 ss
play framework 勉強会 in 関西
ゲームのインフラをAwsで実戦tips全て見せます
201803_EC-CUBE開発進捗説明会_3_カスタマイズ
PHP開発者のためのNoSQL入門
Oci file storage service deep dive 20181001 ss
Asset Pipeline for Perl
B 8スポンサー講演資料 osnexus steven umbehocker (アファーム・ビジネスパートナーズ株)
B 8スポンサー講演資料 osnexus steven umbehocker (アファーム・ビジネスパートナーズ株)
OSC2011Tokyo/Fall OpenStack Swift入門
LINEのMySQL運用について
OpenStack Object Storage; Usage
OSC2012 Nagoya - OpenStack - Storage System; Overview
開発者向けAlfrescoのご紹介(2013/03/27 JJUG ナイトセミナー「Java製OSS特集」発表資料)
Jjug springセッション
Red Hat OpenShift Container Storage
Cloudstack user group meeting in osaka
How to use Ceph RBD as CloudStack Primary Storage

More from Ashitaba YOSHIOKA (18)

PPTX
AWSを利用した開発者・データを扱う人向けの資料
PPTX
メタプログラミングRuby勉強会#5
PPTX
メタプログラミングRuby勉強会#4
PPTX
千年繁栄する法
PPT
もくもく会について
PPT
PolicyとItem (CMIS輪読会#3)
PDF
AlfrescoとSolr(後編)
KEY
Alfresco Google Docs連携
KEY
今さら始めるCoffeeScript
KEY
今さら始めるJavaScript
KEY
Alfresco CI
KEY
Alfresco JP Site
KEY
AlfrescoとActiveCMIS
KEY
Alfresco Java Foundation API
KEY
Alfresco and Web Script (English)
KEY
AlfrescoとWeb Script
KEY
Alfresco SDKとカスタムアクション
KEY
Alfrescoのインストールと設定
AWSを利用した開発者・データを扱う人向けの資料
メタプログラミングRuby勉強会#5
メタプログラミングRuby勉強会#4
千年繁栄する法
もくもく会について
PolicyとItem (CMIS輪読会#3)
AlfrescoとSolr(後編)
Alfresco Google Docs連携
今さら始めるCoffeeScript
今さら始めるJavaScript
Alfresco CI
Alfresco JP Site
AlfrescoとActiveCMIS
Alfresco Java Foundation API
Alfresco and Web Script (English)
AlfrescoとWeb Script
Alfresco SDKとカスタムアクション
Alfrescoのインストールと設定

Alfrescoクラスタリング入門

  • 1. Alfrescoクラスタリング入門 - Alfresco勉強会 第9回 - 2012/8/29 @mryoshio Copyright 2012 tachibanakikaku.com. All rights reserved.
  • 2. 目次 ■ 自己紹介 ■ Alfresco ■ クラスタリング ■ クラスタリングの設定 ■ 動作確認 ■ 振り返り ■ おまけ
  • 3. 自己紹介 ■ 仕事 ‣ Alfresco ... カスタマイズやサポート ‣ Liferay ... カスタマイズやサポート ■ それ以外 ‣ Alfresco ... https://www.facebook.com/AlfrescoUserJP の管理 ‣ Ruby,Python,Heroku,GAE,AWS等で遊ぶ
  • 4. Alfresco ■ 概要 ‣ 英Alfresco社が提供するエンタープライズコンテンツ管理(ECM)の為のオープンソースソフ トウェア。コンテンツ管理,Webコンテンツ管理,コラボレーションなどを低コストで導入で きる ■ 競合 ‣ SharePoint ... Microsoft社製のコラボレーションに重点を置いたコンテンツ管理ソフトウェア ‣ Documentum ... EMC社製の高機能なコンテンツ管理ソフトウェア ■ 特徴 ‣ Community版(無償)とEnterprise版(サブスクリプション購入)が存在 ‣ WebScriptを使い,RESTインターフェースを簡単に追加できる ‣ 今ならクラウド環境にあるAlfresco in the cloudで10GBのストレージを無料利用可能 ➡ http://www.alfresco.com/cloud ※フリーでない(会社等の)Eメールアドレスが必要
  • 6. 考えよう ■ よくあるクラスタリングの対象 ‣ ロードバランサ ‣ Web / AP / DB サーバ ‣ ネットワーク ■ Alfrescoの場合 ‣ ? ‣ ? ‣ ?
  • 7. Alfrescoの冗長化ポイント ■ Web / AP / DB サーバ ■ JLANキャッシュ ■ クライアントセッション ■ コンテンツストア ■ キャッシュ ■ Luceneインデクス
  • 8. 通常の構成 Content Store MySQL / PostgreSQL Cache INDEX
  • 9. 冗長化してみた図 サーバA サーバB Content Store Content Store Cache Cache INDEX INDEX MySQL / PostgreSQL
  • 10. 冗長化したもの 内容 Alfrescoのコンテンツが格納されている。ファイルシステム上、 ${dir.root}/ コンテンツストア contentstoreに存在する。 キャッシュ インメモリのJavaオブジェクトキャッシュ。L2キャッシュ。 Lucene検索で利用するインデクス。ファイルシステム上、${dir.root}/ Luceneインデクス lucene-indexesに存在する。
  • 12. 環境 ■ OS ‣ Max OSX 10.7.4(Lion) ... Primary Alfresco ‣ Ubuntu 10.04.4 LTS(lucid) ... Secondary Alfresco ■ Alfresco ‣ Community 4.0.e(Custom Install) ‣ Apache Tomcat 6.0.35 ■ Database ‣ MySQL Community Edition 5.1.49
  • 13. 変更ファイル 対象ファイル shared/classes/alfresco-global.properties コンテンツストア shared/classes/alfresco/extension/replicating-content-services-context.xml shared/classes/alfresco-global.properties キャッシュ shared/classes/alfresco/extension/ehcache-custom.xml Luceneインデクス shared/classes/alfresco-global.properties
  • 14. コンテンツストア ■ alfresco-global.properties ‣ dir.rootの設定 ➡ サーバA: サーバBから見える場所を自コンテンツストアに設定 ➡ サーバB: サーバAから見える場所を自コンテンツストアに設定 ■ replicating-content-services-context.xml ‣ extension/に.sampleファイルとして存在するのでそれをコピー ‣ localDriveContentStoreとnetworkContentStoreの設定 ➡ サーバA: local をサーバAの${dir.root}/contentstoreに設定,network をサーバBのものに設定 ➡ サーバB: local をサーバBの ${dir.root}/contentstoreに設定,network をサーバAのものに設定
  • 15. キャッシュ ■ alfresco-global.properties ‣ JGroupsで利用するクラスタ名,利用プロトコルの設定 ➡ Community Editionで使えない気がするけど念のため入れてみた ■ ehcache-custom.xml ‣ extension/に.sample.clusterファイルとして存在するのでそれをコピー
  • 16. Luceneインデクス ■ alfresco-global.properties ‣ インデクストラッキング(index.tracking.cronExpression)設定 ➡ 0 0/2 * * * ? (2分毎) ‣ インデクスリカバリ(index.recovery.mode)の設定 ➡ AUTO
  • 18. 処理内容 ■ コンテンツ操作 ‣ サーバAで新規コンテンツをアップロード ‣ サーバBで検索 ‣ サーバBでコンテンツを削除 ‣ サーバAで検索 ■ ユーザ操作 ‣ サーバBで新規ユーザを作成 ‣ 当該ユーザを使いサーバAへログイン ■ コンテンツストア ‣ ファイルシステム上で2つのAlfrescoインスタンスのコンテンツストアの内容を比較
  • 20. 今回の内容 ■ Alfresco ■ クラスタリング ■ クラスタリングの設定 ■ 動作確認
  • 22. 参考情報 ■ 今日のファイル群はここにあります ‣ https://github.com/mryoshio/AlfrescoStudy/tree/master/clustering ■ 参考URL ‣ http://www.slideshare.net/alfresco/06192008-high-availability-clustering-with-alfresco ‣ http://wiki.alfresco.com/wiki/Cluster_Configuration_V2.1.3_and_Later
  • 23. Copyright 2012 tachibanakikaku.com. All rights reserved.

Editor's Notes

  • #2: \n
  • #3: \n
  • #4: \n
  • #5: \n
  • #6: \n
  • #7: \n
  • #8: \n
  • #9: \n
  • #10: \n
  • #11: どちらのタイプのWebScriptを作るのかを意識することが大事\n
  • #12: \n
  • #13: \n
  • #14: どちらのタイプのWebScriptを作るのかを意識することが大事\n
  • #15: \n
  • #16: \n
  • #17: \n
  • #18: \n
  • #19: \n
  • #20: \n
  • #21: \n
  • #22: \n
  • #23: \n
  • #24: \n