[参考]MaxGaugeサーバの初期設定の詳細¶
MaxGaugeの初期化スクリプトを実行すると以下にある設定項目を推奨設定値に自動で設定します。
JDKのバージョン確認¶
MaxGaugeに対応したバージョンか確認します。MaxGaugeの各サービスのプロセスは「JAVA1.8」で動作します。
PostgreSQL DBユーザ postgres のパスワード変更¶
PostgreSQLのDBユーザ postgres ユーザのパスワードを設定します。
項目 | 推奨設定値 |
---|---|
postgresユーザのパスワード | postgres |
PostgreSQL pg_hba.conf の変更¶
PostgreSQLの pg_hba.conf の設定内容を変更します。 対象パラメータを推奨設定値に変更します。
対象パラメータ | 推奨設定値 |
---|---|
127.0.0.1からの接続の認証 | md5 |
::1/128(IPv6)からの接続の認証 | md5 |
注釈
pg_hba.conf の内容を変更します。
pg_hba.conf はデフォルトで /var/lib/pgsql/9.4/data ディレクトリ配下に存在します。
pg_hba.confの変更前
# IPv4 local connections: host all all 127.0.0.1/32 ident # IPv6 local connections: host all all ::1/128 ident
pg_hba.confの変更後
# IPv4 local connections: host all all 127.0.0.1/32 md5 # IPv6 local connections: host all all ::1/128 md5
PostgreSQL postgresql.conf の変更¶
PostgreSQLの postgresql.conf の設定内容を変更します。
対象パラメータ | 推奨設定値 |
---|---|
max_connections | 300 |
shared_buffers | 4GB |
temp_buffers | 64MB |
work_mem | 64MB |
maintenance_work_mem | 64MB |
dynamic_shared_memory_type | posix |
wal_sync_method | fdatasync |
checkpoint_segments | 32 |
enable_seqscan | off |
effective_cache_size | 1GB |
constraint_exclusion | partition |
log_destination | stderr |
logging_collector | on |
log_directory | pg_log |
log_filename | postgresql_%m.log |
log_truncate_on_rotation | on |
log_rotation_size | 0 |
log_line_prefix | t |
track_counts | on |
autovacuum | on |
default_transaction_isolation | read committed |
datestyle | iso, ymd |
MaxGauge用リポジトリDBの作成¶
MaxGaugeの監視データを格納するリポジトリDBを作成します。
項目 | 推奨設定値 |
---|---|
MaxGaugeの監視データを格納するDB名 | MFO |
MFOデータベースを手動で作成する場合
su - postgres createdb -U postgres MFOその後、作成したリポジトリDBにMaxGaugeが利用する表や索引などのオブジェクトを作成します。
リポジトリDBに手動でオブジェクトを作成する場合
su -l maxgauge -s /bin/bash -c "cd /opt/maxgauge/DGServer_M/bin; java -jar DGServer.jar install"
注釈
実行後対話となります 「1. Install Repository」の1を入力すると各オブジェクトを作成するDDLが実行されます。
MaxGaugeのPlatformJSの初期設定¶
PlatformJSの設定を推奨設定値に設定します。
項目 | 推奨設定値 |
---|---|
DataGahter Masterの接続先IPアドレス | 127.0.0.1 |
DataGahter Masterのリッスンポート | 7000 |
リポジトリDBの種類 | PostgreSQL |
リポジトリDBの接続先IPアドレス | 127.0.0.1 |
リポジトリDBのリッスンポート | 5432 |
接続するデータベース名 | MFO |
リポジトリDBに接続するユーザ名 | postgres |
リポジトリDBに接続するユーザのパスワード | postgres |
PlatformJSのリッスンポート | 8080 |
PlatformJSを手動で設定する場合
su -l maxgauge -s /bin/bash -c "cd /opt/maxgauge/PlatformJS;sh configuration.sh"
注釈
コマンドを実行後、対話入力となるので各項目の値を入力して設定します。