Cassandra設定¶
概要¶
Cassandraの設定を行います。
モジュール IMBox フォーマットファイル(xsd) WEB-INF/schema/cassandra-config.xsd 設定場所 WEB-INF/conf/cassandra-config.xsd <?xml version="1.0" encoding="UTF-8"?> <cassandra-config xmlns="http://www.intra-mart.jp/imbox/cassandra-config" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://www.intra-mart.jp/imbox/cassandra-config ../schema/cassandra-config.xsd "> <cluster-name>Test Cluster</cluster-name> <replication-factor>1</replication-factor> <keyspace>default</keyspace> <hosts> <host>127.0.0.1:9160</host> </hosts> </cassandra-config>
リファレンス¶
クラスター名¶
タグ名 cluster-name Cassandraのクラスタ名です。【設定項目】
<cassandra-config> <cluster-name>....</cluster-name> </cassandra-config>
必須項目 ○ 複数設定 × 設定値・設定する内容 Cassandraのクラスタ名を設定します。 単位・型 文字列 省略時のデフォルト値 なし 親タグ cassandra-config
レプリカ数¶
タグ名 replication-factor クラスタ内部のデータのレプリカ数です。【設定項目】
<cassandra-config> <replication-factor>....</replication-factor> </cassandra-config>
必須項目 ○ 複数設定 × 設定値・設定する内容 クラスタ内部のデータのレプリカ数を設定します。 単位・型 数値 (1 - ) 親タグ cassandra-config
キースペース¶
タグ名 keyspace 接続するCassandraのキースペースを指定します。【設定項目】
<cassandra-config> <keyspace>....</keyspace> </cassandra-config>
必須項目 × 複数設定 × 設定値・設定する内容 Cassandraのキースペースを設定します。 単位・型 文字列 省略時のデフォルト値 default 親タグ cassandra-config