使用提供者服務公用程式完成組態之後,Smart View 使用者便可透過一個集中的提供者服務 URL 存取所有叢集節點。
使用提供者服務 startAPScmd 公用程式,您可以建立屬於多部 Essbase 伺服器之相同立方體的主動-主動 (唯讀) 叢集。主動-主動叢集的優點是可為大量使用查詢和報表的立方體新增高可用性和負載平衡,但不需要經常進行更新。主動-主動叢集讓從屬端要求能在叢集的立方體之間進行分配。主動-主動叢集僅支援立方體的讀取作業。您無法更新資料或修改大綱。
設定和管理主動-主動 (唯讀) 叢集:
完成使用集中的 Smart View URL 存取多部 Essbase 伺服器中的步驟 1-3。
使用可用命令設定和管理您的唯讀叢集。
輸入 help 以查看所有命令。
輸入 signon 以連線至提供者服務。提供管理員使用者名稱和密碼。輸入結尾為 /japi
的提供者服務 (APS) URL。OLAP 伺服器名稱可留白。
APS>signon Enter user name : admin Enter password : Enter APS URL : https://myhost.example.com:9001/essbase/japi Enter OLAP server name : You are signed on.
輸入 createCluster 以建立唯讀叢集。
APS>createCluster Enter input as cluster name, component names to be enabled (if multiple, separate the components with a ';') (eg- cluster1, host:port:secure/sample/basic;host:port:secure/sample2/basic2) ROcluster,myhost2.example.com:6423:secure/Sample/Basic;myhost3.example.com:6424:secure/Sample/Basic The cluster is created
輸入 listClusters 以依名稱列出所有唯讀叢集。
APS>listClusters
ROcluster
輸入 getCluster 以列出唯讀叢集和其目前的狀態。
APS>getCluster Enter input as clusterName (Eg: demoBasicCluster): ROcluster Name: ROcluster Description: Service comp names: myhost2.example.com:6423:secure/Sample/Basic;myhost3.example.com:6424:secure/Sample/Basic Comp State: (0-BAD,1-GOOD,2-DISABLED) myhost2.example.com:6423:secure/Sample/Basic 1 myhost3.example.com:6424:secure/Sample/Basic 2
輸入 enableCluster 以啟用狀態為停用的唯讀叢集。
APS>enableCluster Enter input as cluster name, component name to be enabled (eg- cluster1, host:port/sample/basic) ROcluster,myhost3.example.com:6424:secure/Sample/Basic The cluster component is enabled
輸入 disableCluster 以停用目前為啟用的唯讀叢集。
APS>disableCluster Enter input as cluster name, component name to be disabled (eg- cluster1, host:port/sample/basic) ROcluster,myhost3.example.com:6424:secure/Sample/Basic The cluster component is disabled
輸入 updateCluster 以更新唯讀叢集定義。
APS>updateCluster Enter input as cluster name, component names to update (if multiple, separate the components with a ';') (eg- cluster1, host:port/sample/basic;host:port/sample2/basic2) ROcluster,myhost3.example.com:6424:secure/Sample/Basic The cluster component is updated
輸入 removeCluster 以依名稱移除唯讀叢集。
APS>removeCluster Enter input as cluster name to be removed (eg- cluster1) ROcluster The cluster is removed
輸入 signoff 以登出,然後輸入 exit 以結束公用程式。