Skip to content

Commit eefaab9

Browse files
DavidBoikebording
andauthored
ServicePulse and ServiceControl docs updates (#6800)
* Move setting from "lost" page * And fix links * Remaining setting is Raven35 only and not needed * Move raven containers page up a level so we don't need an index * ServicePulse container * Update index.md * Clarity * Highlgiht reverse proxy feature as a heading --------- Co-authored-by: Brandon Ording <[email protected]>
1 parent 5220729 commit eefaab9

File tree

15 files changed

+149
-137
lines changed

15 files changed

+149
-137
lines changed

menu/menu.yaml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1378,6 +1378,8 @@
13781378
Title: About ServicePulse
13791379
- Url: servicepulse/installation
13801380
Title: Installation
1381+
- Url: servicepulse/containerization
1382+
Title: Container deployment
13811383
- Url: servicepulse/intro-failed-messages
13821384
Title: Failed Messages
13831385
- Url: servicepulse/intro-failed-message-retries
@@ -1557,7 +1559,7 @@
15571559
- Title: Backup
15581560
Url: servicecontrol/backup-sc-database
15591561
- Title: Containers
1560-
Url: servicecontrol/ravendb/deployment/containers
1562+
Url: servicecontrol/ravendb/containers
15611563
- Title: Compacting the database
15621564
Url: servicecontrol/db-compaction
15631565
- Title: Move database location

servicecontrol/audit-instances/configuration.md

Lines changed: 31 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -114,7 +114,9 @@ The virtual directory to bind the embedded HTTP server to; modify this setting t
114114
| string | _None_ |
115115

116116

117-
## Database
117+
## Embedded database
118+
119+
These settings are not valid for ServiceControl instances hosted in a container.
118120

119121
### ServiceControl.Audit/DbPath
120122

@@ -133,6 +135,31 @@ The path where the internal RavenDB is located.
133135
> [!NOTE]
134136
> This setting is not relevant when the audit instance is [deployed using a container](/servicecontrol/audit-instances/deployment/containers.md).
135137
138+
### ServiceControl.Audit/RavenDBLogLevel
139+
140+
Controls the LogLevel of the RavenDB logs.
141+
142+
| Context | Name |
143+
| --- | --- |
144+
| **Environment variable** | `SERVICECONTROL_AUDIT_RAVENDBLOGLEVEL` |
145+
| **App config key** | `ServiceControl.Audit/RavenDBLogLevel` |
146+
| **SCMU field** | N/A |
147+
148+
#if-version [5,)
149+
| Type | Default value |
150+
| --- | --- |
151+
| string | `Operations` |
152+
153+
Valid settings are: `None`, `Information`, `Operations`.
154+
#end-if
155+
#if-version [,5)
156+
| Type | Default value |
157+
| --- | --- |
158+
| string | `Warn` |
159+
160+
Valid settings are: `Trace`, `Debug`, `Info`, `Warn`, `Error`, `Fatal`, `Off`.
161+
#end-if
162+
136163
#if-version [,5)
137164
### Raven/IndexStoragePath
138165
> [!NOTE]
@@ -445,28 +472,15 @@ The ServiceControl queue name to use for plugin messages (e.g. Heartbeats, Custo
445472

446473
## Troubleshooting
447474

448-
ServiceControl Audit stores its data in a RavenDB embedded instance. If direct access to the RavenDB instance is required for troubleshooting while ServiceControl Audit is running, see [Accessing the database](/servicecontrol/ravendb/accessing-database.md).
449-
450-
### RavenDB 5
451-
452-
For instances running version 4.26 and above, which are configured to use [the new RavenDB 5 persistence](/servicecontrol/migrations/new-persistence.md) browse to:
453-
454-
```no-highlight
455-
http://localhost:{configured ServiceControl instance maintenance port}
456-
```
457-
458-
to access the internal database via [the RavenDB studio interface](https://ravendb.net/docs/article-page/5.4/csharp/studio/overview).
459-
460-
461-
#### ServiceControl.Audit/DataSpaceRemainingThreshold
475+
### ServiceControl.Audit/DataSpaceRemainingThreshold
462476

463477
The percentage threshold for the [Message database storage space](/servicecontrol/servicecontrol-instances/#notifications-health-monitoring-message-database-storage-space) check. If the remaining hard drive space drops below this threshold (as a percentage of the total space on the drive) then the check will fail, alerting the user.
464478

465479
| Type | Default value |
466480
| --- | --- |
467481
| int | `20` |
468482

469-
#### ServiceControl.Audit/MinimumStorageLeftRequiredForIngestion
483+
### ServiceControl.Audit/MinimumStorageLeftRequiredForIngestion
470484

471485
The percentage threshold for the [Critical message database storage space](/servicecontrol/servicecontrol-instances/#notifications-health-monitoring-message-database-storage-space) check. If the remaining hard drive space drops below this threshold (as a percentage of the total space on the drive), then the check will fail, alerting the user. The message ingestion will also be stopped to prevent data loss. Message ingestion will resume once more disk space is made available.
472486

@@ -476,7 +490,7 @@ The percentage threshold for the [Critical message database storage space](/serv
476490

477491
#if-version [,5)
478492

479-
#### Raven/Esent/LogsPath
493+
### Raven/Esent/LogsPath
480494

481495

482496
This setting is applicable only on instances that use the RavenDB 3.5 storage engine.

servicecontrol/audit-instances/deployment/containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -39,7 +39,7 @@ The following environment settings are required to run a ServiceControl audit in
3939
|-|-|
4040
| `TRANSPORTTYPE` | Determines the message transport used to communicate with message endpoints. See [ServiceControl transport configuration](/servicecontrol/transports.md) for valid TransportType values. |
4141
| `CONNECTIONSTRING` | Provides the connection information to connect to the chosen transport. The form of this connection string is different for every message transport. See [ServiceControl transport support](/servicecontrol/transports.md) for more details on options available to each message transport. |
42-
| `RAVENDB_CONNECTIONSTRING` | Provides the URL to connect to the [database container](/servicecontrol/ravendb/deployment/containers.md) that stores the audit instance's data. The database container should be exclusive to the error instance, and not shared by any other ServiceControl instances. |
42+
| `RAVENDB_CONNECTIONSTRING` | Provides the URL to connect to the [database container](/servicecontrol/ravendb/containers.md) that stores the audit instance's data. The database container should be exclusive to the error instance, and not shared by any other ServiceControl instances. |
4343
| `PARTICULARSOFTWARE_LICENSE` | The Particular Software license. The environment variable should contain the full multi-line contents of the license file. |
4444

4545
## Ports

servicecontrol/audit-instances/index.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,7 @@ Data about audit messages is exposed via an HTTP API from a ServiceControl Error
3636
3737
## Persistence
3838

39-
Each ServiceControl Audit instance stores message data in a RavenDB database. For instances deployed using the ServiceControl Management utility or PowerShell this database is embedded with the ServiceControl Audit instance. For ServiceControl Audit instances deployed using containers the database resides in a [separate container](/servicecontrol/ravendb/deployment/containers.md).
39+
Each ServiceControl Audit instance stores message data in a RavenDB database. For instances deployed using the ServiceControl Management utility or PowerShell this database is embedded with the ServiceControl Audit instance. For ServiceControl Audit instances deployed using containers the database resides in a [separate container](/servicecontrol/ravendb/containers.md).
4040

4141
By default, audit data is retained for 30 days. [This retention period can be customized](/servicecontrol/audit-instances/configuration.md#data-retention).
4242

servicecontrol/import-failed-messages.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ Messages can fail to be imported into the ServiceControl database for the follow
1919
2020
Messages that fail to be imported are stored in the ServiceControl database in the `FailedAuditImports` and `FailedErrorImports` collections.
2121

22-
In addition, a log with the failure reason is written for the message in the `%ServiceControl/LogPath%` ([error instances](/servicecontrol/servicecontrol-instances/configuration.md#embedded-database-servicecontrollogpath)/[audit instances](/servicecontrol/audit-instances/configuration.md#logging-servicecontrol-auditlogpath)) `\FailedImports\{Audit|Error}\%failureid%.txt`. These messages will not be visible in ServiceInsight.
22+
In addition, a log with the failure reason is written for the message in the `%ServiceControl/LogPath%` ([error instances](/servicecontrol/servicecontrol-instances/configuration.md#logging-servicecontrollogpath)/[audit instances](/servicecontrol/audit-instances/configuration.md#logging-servicecontrol-auditlogpath)) `\FailedImports\{Audit|Error}\%failureid%.txt`. These messages will not be visible in ServiceInsight.
2323

2424
## Failed message custom check
2525

servicecontrol/migrations/replacing-audit-instances/containers.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ This article describes how to replace an Audit instance with zero downtime when
2121
>
2222
> This guide assumes this is true, and that the user knows how to create routable URLs to allow the communication, even if one instance is hosted on a virtual machine and another instance is running on containerized infrastructure.
2323
24-
First, a new audit instance must be created. [Deploy a new Audit instance container](/servicecontrol/audit-instances/deployment/containers.md) with its own [database container](/servicecontrol/ravendb/deployment/containers.md).
24+
First, a new audit instance must be created. [Deploy a new Audit instance container](/servicecontrol/audit-instances/deployment/containers.md) with its own [database container](/servicecontrol/ravendb/containers.md).
2525

2626
## Add the instance to RemoteInstances
2727

@@ -51,4 +51,4 @@ Modify the old Audit instance container by specifying the [`INGESTAUDITMESSAGES`
5151
When the audit retention period has expired and there are no remaining processed messages in the database, you can decommission the old audit instance:
5252

5353
1. Adjust the `REMOTEINSTANCES` environment variable [as described above](#add-the-instance-to-remoteinstances) except remove the old Audit instance URI from the collection.
54-
2. Remove the old Audit instance by stopping and removing the container, as well as the related [database container](/servicecontrol/ravendb/deployment/containers.md).
54+
2. Remove the old Audit instance by stopping and removing the container, as well as the related [database container](/servicecontrol/ravendb/containers.md).

servicecontrol/migrations/replacing-error-instances/containers.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ Modify the old Error instance container by specifying the [`INGESTERRORMESSAGES`
3333
## Replace the Error instance
3434

3535

36-
[Deploy a new Error instance container](/servicecontrol/servicecontrol-instances/deployment/containers.md) with its own [database container](/servicecontrol/ravendb/deployment/containers.md). The [`REMOTEINSTANCES` environment variable](/servicecontrol/servicecontrol-instances/configuration.md#host-settings-servicecontrolremoteinstances) should match the configuration of the old Error instance so that it can communicate to the same Audit instance(s).
36+
[Deploy a new Error instance container](/servicecontrol/servicecontrol-instances/deployment/containers.md) with its own [database container](/servicecontrol/ravendb/containers.md). The [`REMOTEINSTANCES` environment variable](/servicecontrol/servicecontrol-instances/configuration.md#host-settings-servicecontrolremoteinstances) should match the configuration of the old Error instance so that it can communicate to the same Audit instance(s).
3737

3838
Now, the old and new Error instance's are both available, but the old Error instance is not ingesting messages.
3939

servicecontrol/ravendb/configuration.md

Lines changed: 0 additions & 56 deletions
This file was deleted.

servicecontrol/ravendb/deployment/containers.md renamed to servicecontrol/ravendb/containers.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,8 @@
22
title: Managing ServiceControl RavenDB instances via Containers
33
reviewed: 2024-06-11
44
component: ServiceControl
5+
redirects:
6+
- servciecontrol/ravendb/deployment/containers
57
---
68

79
When ServiceControl is hosted in containers, the [`particular/servicecontrol-ravendb` image](https://hub.docker.com/r/particular/servicecontrol-ravendb) provides the database storage to the Error and Audit instances.

servicecontrol/ravendb/deployment/index.md

Lines changed: 0 additions & 12 deletions
This file was deleted.

0 commit comments

Comments
 (0)