Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Motivation: In a replicated billing setup, one would expect all billing records to reach all instances, while queries from the statistics service would reach a single of those. Modification: Introduce a billing topic. All services announce billing records on this topic. Introduce a billing queue. The statistics service queries on this queue. Extend the statistics service to not hard-code cell names. Backwards compatibility is achieved by using 'billing' as the name of the billing queue. Thus a replicated setup for billing only works out of the box when all components have upgraded to 2.17. Result: Billing service is replicable in all components run 2.17 or newer. Introduced statistics.service.poolmanager, statistics.service.pool, and statistics.service.billing property trees. Introduced dcache.queue.billing and dcache.topic.billing. Obsoleted dcache.service.billing. Target: trunk Require-notes: yes Require-book: yes Acked-by: Paul Millar <paul.millar@desy.de> Reviewed at https://rb.dcache.org/r/9637/
- Loading branch information
Showing
15 changed files
with
66 additions
and
15 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,10 +1,26 @@ | ||
onerror shutdown | ||
check -strong statistics.cell.name | ||
check -strong statistics.location | ||
check -strong statistics.service.billing | ||
check -strong statistics.service.billing.timeout | ||
check -strong statistics.service.billing.timeout.unit | ||
check -strong statistics.service.poolmanager | ||
check -strong statistics.service.poolmanager.timeout | ||
check -strong statistics.service.poolmanager.timeout.unit | ||
check -strong statistics.service.pool.timeout | ||
check -strong statistics.service.pool.timeout.unit | ||
|
||
create diskCacheV111.services.PoolStatisticsV0 ${statistics.cell.name} \ | ||
"${statistics.location} \ | ||
# -create \ | ||
# -htmlBase=${statistics.location} \ | ||
-poolManager=${statistics.service.poolmanager} \ | ||
-poolManagerTimeout=${statistics.service.poolmanager.timeout} \ | ||
-poolManagerTimeoutUnit=${statistics.service.poolmanager.timeout.unit} \ | ||
-billing=${statistics.service.billing} \ | ||
-billingTimeout=${statistics.service.billing.timeout} \ | ||
-billingTimeoutUnit=${statistics.service.billing.timeout.unit} \ | ||
-poolTimeout=${statistics.service.pool.timeout} \ | ||
-poolTimeoutUnit=${statistics.service.pool.timeout.unit} \ | ||
-domain=${thisFqHostname}" | ||
|