ファイル・システムでのデータソース・キャッシュの作成

BIサーバーによる直接アクセスのために、データソース・キャッシュのデータをファイル・システムに格納できます。これはデフォルトの構成です。これは、アップロードしたスプレッドシート・ファイルなど、小規模から中規模のデータソースに適しています。大規模なデータソースの場合は、データソース・キャッシュをデータベースに構成すると、より優れたパフォーマンスを得られます。

ファイル・システムベースのデータソース・キャッシュは、次のように機能します。
  1. BIサーバーがデータソースに対する論理SQL文を受け取ります。

  2. BIサーバーはデータソースのメタデータを取得します。メタデータの内容を使用して、BIサーバーは、データソースのデータをリクエストするかわりに、問合せへの応答に使用可能な既存のデータソース・キャッシュ・エントリが存在するかどうかをチェックします。

  3. いずれのデータソースにも既存のデータソース・キャッシュ・エントリがない場合、BIサーバーは、データソースのデータをキャッシュにロードするスレッドを開始します。

  4. 論理SQL文(および同じデータソースのデータを要求する他のすべての同時論理SQL文)は、スレッドの終了を待機します。

  5. スレッドの実行が完了すると、新たにシードされたデータソース・キャッシュ・エントリに依存するすべてのサブリクエストでこのキャッシュが使用されます。

ファイル・システムでデータソース・キャッシュを構成します。

  1. NQSConfig.INIファイルのXSA_CACHEセクションを次のように変更します。
    [XSA_CACHE]
    ENABLE = YES;
    
    # The schema and connection pool where the XSA data is cached. 
    # Set PHYSICAL_SCHEMA to ""."" to use file-based XSA cache. 
    # This indicates that a file-based XSA cache should be used by BI Server and the value of the CONNECTION_POOL parameter should be ignored.
    PHYSICAL_SCHEMA = "".""; # "<Database>"."<Schema>"; 
    CONNECTION_POOL = "".""; # "<Database>"."<Connection Pool>";
    
    # The path to the location where cache data files is persisted. 
    # This is only used if file-based XSA cache is configured. 
    # If a relative path is specified, it is relative to: 
    # BI_DOMAIN/servers/obisn 
    STORAGE_DIRECTORY = "storage"; # location where the cache data files are stored
    
    # The maximum space allocated in the schema for the cache data.
    MAX_TOTAL_SPACE = 5 GB;
    
    # The maximum size allowed for a single XSA cache entry. 
    MAX_CACHE_ENTRY_SIZE = 200 MB;
    
    # The path to the location where descriptor files of the cache data is persisted. 
    # If a relative path is specified, it is relative to: 
    # BI_DOMAIN/servers/obisn 
    DESCRIPTOR_STORAGE_PATH = "xsacache"; # location where the cache metadata files are stored
    
    # The number of threads available for seeding XSA cache entries. 
    CACHE_SEED_THREAD_RANGE = 0-40; 
    CACHE_SEED_THREAD_STACK_SIZE = 0; # default is 256 KB (32 BIT mode), 1 MB (64 BIT mode), 0 for default
  2. BIサーバーを再起動します。

  3. データソース・キャッシュが正しく構成されていることを検証するには、obis1-diagnostic.logをチェックします。サーバー起動時に、次のようなエントリを探します。
    [2017-01-13T14:41:30.715-07:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: 81c8] [101043] External Subject Area cache with internal storage is started successfully using configuration from the repository with the logical name Star.
    [2011-01-13T14:41:30.716-07:00] [OracleBIServerComponent] [NOTIFICATION:1] [] [] [ecid: ] [tid: 81c8] [101017] External Subject Area cache has been initialized. Total number of entries: 0 Used space: 0 bytes Maximum space: 107374182400 bytes Remaining space: 107374182400 bytes. Cache table name prefix is XC.

データソース・キャッシュを有効にすると、NQSConfig.INIXSA_CACHEセクションのSTORAGE_DIRECTORYパラメータの定義に従って、ファイル・システムにデータソースのデータが格納されます。メタデータは、NQSConfig.INIXSA_CACHEセクションにあるDESCRIPTOR_STORAGE_PATHパラメータで指定された、ローカル・ファイル・システムのディレクトリに格納されます。パフォーマンスを向上させるには、データソースのデータおよびデータソース・キャッシュのメタデータ・ファイルをRAMディスクに配置します。