Configuration#
顧客id に必須であることに加えて、
Lasso構成ファイルを使用すると、環境に必要なコマンドラインオプションのほとんどを省略できます。
Processor usage statistics ( linux_mpstat)` <Processor usage statistics ( linux_mpstat`)`>` のすべてのコマンドラインオプションのリストを表示できます。
Lassoは、次のパスで構成ファイルをこの順序で検索し、最初に一致したものを使用します。
Lassoが実行されているのと同じディレクトリにある./edb-lasso.cfg
Lassoが実行されているのと同じディレクトリにある
./edb-lasso.conf$HOME/.edb-lasso.conf/etc/edb-lasso.conf
このリストにない構成ファイルを指定するには、 --config-file
オプションを使用してLassoを実行します。例
lasso --config-file /path/to/file.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
; since Lasso 4.17.0, the token is no longer mandatory.
token=
; the depth of the Lasso report. Must be one between: surface, shallow and deep
depth=deep
; the environment of the server. Can be any string
environment=
[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=
; proxy_configuration=
[pgd-proxy]
; path to pgd-proxy-config.yml, if using a non-default one
; configuration=
このテンプレートを使用して、構成ファイルをセットアップできます。目的のパラメーターのコメントを外し、環境に応じて値を設定します。
Linuxでは、同じテンプレート構成ファイルを/etc/edb-lasso.conf.templ
で見つけることができます。
これらの各引数が Report types でどのように使用されるかについての詳細を確認できます。