4

最近のOpen Apereo 14 カンファレンスでは、Sakai 10 での分散キャッシングとセッション レプリケーションに関するセッションが行われました。

http://lanyrd.com/2014/apereo/sdbbct/

セッションのレプリケーションを可能にするために、Sakai 10 で実行する必要がある手順は何ですか?

4

1 に答える 1

4

セッション レプリケーションは Sakai 10 の一部ですが、デフォルトではオフになっています。有効にするには、次のものが必要です。

  1. Terracotta がインストール、構成、および実行されている (現在、バージョン 3.7.6 が必要ですhttp://fossies.org/linux/misc/terracotta-3.7.6.tar.gz )
  2. ロード バランサーの背後にある複数の Tomcat サーバー
  3. 次の sakai.properties 設定セット (ここにあります https://source.sakaiproject.org/svn/config/trunk/configuration/bundles/src/bundle/org/sakaiproject/config/bundle/default.sakai.properties ):

    # CLUSTER CACHING (KNL-1184)
    # WARNING: this requires an external distributed caching server
    # Enable distributed caching
    # DEFAULT: false
    #memory.cluster.enabled=true
    
    # The URLs of the distributed cache servers
    #memory.cluster.server.urls.count=2
    #memory.cluster.server.urls.1={CACHE_SERVER_URL_1}:9510
    #memory.cluster.server.urls.2={CACHE_SERVER_URL_2}:9511
    
    ## The caches that will be using the distributed cache.
    ## SESSION failover: org.sakaiproject.tool.impl.RebuildBreakdownService.cache
    #memory.cluster.names.count=1
    #memory.cluster.names.1=org.sakaiproject.tool.impl.RebuildBreakdownService.cache
    
    ## Any Cache properties below that are not set will use the default values
    # Valid properties include: maxEntries(int>0), timeToIdle(int>0, seconds), timeToLive(int>0, seconds), eternal(true|false)
    # Defaults: maxEntries=10000, timeToIdle=600, timeToLive=600, eternal=false
    # Configure cluster caches using: memory.cluster.{cacheName}.{property)={value}
    
    # Session replication caching properties
    #memory.cluster.org.sakaiproject.tool.impl.RebuildBreakdownService.cache.maxEntries=50000
    #memory.cluster.org.sakaiproject.tool.impl.RebuildBreakdownService.cache.timeToIdle=3600
    #memory.cluster.org.sakaiproject.tool.impl.RebuildBreakdownService.cache.timeToLive=10800
    
    ## Session Replication settings
    ## WARNING: This requires a distribution mechanism of some kind (currently requires a distributed cache)
    ## NOTES:
    ## cache: org.sakaiproject.tool.impl.RebuildBreakdownService.cache must be set to a distributed cache (see memory.cluster)
    ## cache: org.sakaiproject.tool.impl.RebuildBreakdownService.stash should be configured to last as long
    ##        as your user might need to navigate to JSF or other on-demand session tools after landing on a new server
    # Enable session cluster replication (see notes above)
    # Default: false
    #session.cluster.replication=true
    ## Performance tuning settings below - be careful with these numbers as adjusting them downward can create heavy load
    # Tuning setting, minimum seconds old the session must be before it will be replicated
    # Default: 20
    #session.cluster.minSecsOldToStore=20
    # Tuning setting, minimum seconds that must pass before session data is updated (since last store)
    # NOTE: certain events will cause the session data to be updated in the store regardless of this setting
    # Default: 10
    #session.cluster.minSecsBetweenStores=10
    # Tuning setting, minimum seconds after a session has been rebuilt from the store before it can be updated in the storage again
    # Default: 30
    #session.cluster.minSecsAfterRebuild=30
    

Sakai のほとんどのツールは、ページ状態のセッションに項目を保存することに注意してください。JSF、Wicket、および Velocity が明確な例です。ほとんどの場合、ユーザーはツールのホームに戻されますが、現在のサイトと現在のツールにログインしたままになります。

于 2014-06-10T18:12:45.487 に答える