Configuration#
顧客のid およびtoken
に必須であることに加えて、Lasso構成ファイルでは、環境で必要になる可能性のあるコマンドラインオプションのほとんどを省略することもできます。
プロセッサー使用統計 `linux_mpstat <プロセッサー使用統計 linux_mpstat>` ですべてのコマンドラインオプションのリストを確認できます。
Lassoは、次のパスで構成ファイルをこの順序で検索し、最初に一致したものを使用します。
1.Lassoが実行されているのと同じディレクトリにある./edb-lasso.cfg
Lassoが実行されているのと同じディレクトリにある
./edb-lasso.conf
3.$HOME/.edb-lasso.conf
4./etc/edb-lasso.conf
構成ファイルのテンプレートファイルは次のとおりです。
; Lasso template configuration file
;
; Copyright (C) EnterpriseDB UK Limited 2015-2024 - All Rights Reserved.
; Licensed only for use with an EnterpriseDB subscription
[customer]
; the "Company code" from the customer page in the EDB Portal
id=
; the "Token" from the customer page in the EDB Portal
token=
; the depth of the Lasso report. Must be one between: surface, shallow and deep
depth=deep
[postgresql]
; Lasso uses the following connection string parameters to connect to your
; PostgreSQL cluster and take diagnostics. By default it will attempt a peer
; connection to socket under directory /var/run/postgresql
; dbname=
; user=
; port=
; hostname can be a host or a socket directory
; hostname=/var/run/postgresql
; password=
; session variable to control timeout on lock waits
; lock_timeout=3s
; session variable to control statement execution time
; statement_timeout=5min
[environment]
; PostgreSQL binaries directory. Lasso will try to detect this automatically if
; not set
; bindir=
; if the host is able to access the internet and reach the EDB servers to upload
; Lasso reports
; external_access=yes
[barman]
; path to barman.conf, if using a non-default one
; configuration=
[repmgr]
; path to repmgr.conf, if using a non-default one
; configuration=
[efm]
; path to efm.properties, if using a non-default one
; configuration=
[xdb]
; path to xdb_pubserver.conf, if using a non-default one
; pubserver_configuration=
; path to xdb_subserver.conf, if using a non-default one
; subserver_configuration=
[pgbouncer]
; path to pgbouncer.ini, if using a non-default one
; configuration=
[harp]
; path to config.yml, if using a non-default one
; configuration=
[pgd-proxy]
; path to pgd-proxy-config.yml, if using a non-default one
; configuration=
このテンプレートを使用して、構成ファイルをセットアップできます。目的のパラメーターのコメントを外し、環境に応じて値を設定します。
Linuxでは、同じテンプレート構成ファイルを/etc/edb-lasso.conf.templ
で見つけることができます。