Skip to content

Commit

Permalink
Remove --reload flag from the collector tests (#268)
Browse files Browse the repository at this point in the history
* Clarify where to update the config

* Update collector test to remove --reload

* Apply reviews
  • Loading branch information
keiko713 authored Jul 18, 2024
1 parent 2adce16 commit e97dc5c
Show file tree
Hide file tree
Showing 8 changed files with 16 additions and 15 deletions.
6 changes: 3 additions & 3 deletions collector/settings.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -24,9 +24,9 @@ describe the servers to monitor, how to connect to them, and server-specific con
name the other sections after the servers they correspond to, though note these are not the names that will appear
in the app. In-app names are based on hostname settings as determined during monitoring.

After you make changes, you can run `pganalyze-collector --test --reload` to verify the new configuration and load
the new configuration in the collector background process if they work correctly. This minimizes monitoring
interruptions and simplifies config file updates.
After you make changes, you can run `pganalyze-collector --test` to verify the new configuration.
If the test succeeds, this will automatically load the new configuration in the collector background process
(equivalent to using the `--reload` flag). This minimizes monitoring interruptions and simplifies config file updates.

The tables below list configuration settings, their defaults if not set, and their descriptions. If a setting is
configurable through environment variables, the environment variable name follows the setting in parentheses.
Expand Down
6 changes: 3 additions & 3 deletions components/CollectorLogTest.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ I Successfully reloaded pganalyze collector (PID 123)`
and apply the collector configuration (for container environments, simply
restart the collector):
</p>
<CodeBlock>sudo pganalyze-collector --test --reload</CodeBlock>
<CodeBlock>sudo pganalyze-collector --test</CodeBlock>
<CodeBlock>{sampleOutput}</CodeBlock>
</>
)
Expand All @@ -34,7 +34,7 @@ I Successfully reloaded pganalyze collector (PID 123)`
return (
<>
<p>You can now test and apply the collector configuration:</p>
<CodeBlock>sudo pganalyze-collector --test --reload</CodeBlock>
<CodeBlock>sudo pganalyze-collector --test</CodeBlock>
<CodeBlock>{sampleOutput}</CodeBlock>
<p>
If you are getting an error, it sometimes helps to run the
Expand All @@ -48,4 +48,4 @@ I Successfully reloaded pganalyze collector (PID 123)`
}
}

export default CollectorLogTest;
export default CollectorLogTest;
3 changes: 2 additions & 1 deletion explain/setup/log_explain/02_enable_log_explain.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -16,9 +16,10 @@ You will need to update the collector configuration to enable log-based EXPLAIN.
Afterwards make sure to reload the pganalyze collector, so the setting takes effect:

```
sudo pganalyze-collector --test --reload
sudo pganalyze-collector --test
```

Successful test run will reload the collector.
If this test succeeds, continue to the next step to test plan collection:

<Link className='btn btn-success' to='03_test_and_verify'>
Expand Down
4 changes: 2 additions & 2 deletions install/aiven/05_configure_the_collector_package.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ Fill in the values from the info in your Aiven console:
Run the following to make sure the configuration works:

```
sudo pganalyze-collector --test --reload
sudo pganalyze-collector --test
```

<PublicLastStepLogInsightsLink />
<PublicLastStepLogInsightsLink />
2 changes: 1 addition & 1 deletion install/amazon_rds/04_configure_the_collector_ec2.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -91,7 +91,7 @@ db_host = mydbinstance3.123456789012.us-east-1.rds.amazonaws.com
Now, verify that the configuration is correct, by running the following command:

```
$ sudo pganalyze-collector --test --reload
$ sudo pganalyze-collector --test
1999/01/01 08:04:30 I [pganalyze] Testing statistics collection...
1999/01/01 08:04:32 I [pganalyze] Test submission successful (1010 KB received)
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ Fill in the values step-by-step:
Run the following to make sure the configuration works:

```
sudo pganalyze-collector --test --reload
sudo pganalyze-collector --test
```

<PublicLastStepLogInsightsLink />
Original file line number Diff line number Diff line change
Expand Up @@ -61,7 +61,7 @@ If you are using Google AlloyDB, do not specify `gcp_cloudsql_instance_id`, but
Run the following to make sure the configuration works:

```
sudo pganalyze-collector --test --reload
sudo pganalyze-collector --test
```

<PublicLastStepLogInsightsLink />
<PublicLastStepLogInsightsLink />
4 changes: 2 additions & 2 deletions install/self_managed/04_configure_the_collector_package.mdx
Original file line number Diff line number Diff line change
Expand Up @@ -53,7 +53,7 @@ Fill in the values step-by-step:
Run the following to make sure the configuration works:

```
sudo pganalyze-collector --test --reload
sudo pganalyze-collector --test
```

<PublicLastStepLogInsightsLink />
<PublicLastStepLogInsightsLink />

0 comments on commit e97dc5c

Please sign in to comment.