Skip to content

Commit 54ee73a

Browse files
committed
Update product name in shard count howto
1 parent 50e3379 commit 54ee73a

File tree

1 file changed

+11
-10
lines changed

1 file changed

+11
-10
lines changed

articles/cosmos-db/postgresql/howto-shard-count.md

Lines changed: 11 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ author: jonels-msft
66
ms.service: cosmos-db
77
ms.subservice: postgresql
88
ms.topic: how-to
9-
ms.date: 10/28/2022
9+
ms.date: 11/01/2022
1010
---
1111

1212
# Choose shard count
@@ -28,21 +28,22 @@ between **32 - 128** shards. For smaller workloads say <100 GB, you could start
2828
32 shards and for larger workloads you could choose 64 or 128. This choice gives you
2929
the leeway to scale from 32 to 128 worker machines.
3030

31-
### Real-time analytics use case
31+
## Real-time analytics use case
3232

3333
In the Real-Time Analytics use-case, shard count should be related to the total
3434
number of cores on the workers. To ensure maximum parallelism, you should create
3535
enough shards on each node such that there is at least one shard per CPU core.
3636
We typically recommend creating a high number of initial shards, for example,
3737
**2x or 4x the number of current CPU cores**. Having more shards allows for
38-
*future scaling if you add more workers and CPU cores.
39-
40-
However, keep in mind that for each query Citus opens one database connection
41-
per shard, and these connections are limited. Be careful to keep the shard
42-
count small enough that distributed queries won’t often have to wait for a
43-
connection. Put another way, the connections needed, `(max concurrent queries *
44-
shard count)`, shouldn't exceed the total connections possible in the
45-
system, `(number of workers * max_connections per worker)`.
38+
future scaling if you add more workers and CPU cores.
39+
40+
Keep in mind that, for each query, Azure Cosmos DB for PostgreSQL opens one
41+
database connection per shard, and that these connections are limited. Be
42+
careful to keep the shard count small enough that distributed queries won’t
43+
often have to wait for a connection. Put another way, the connections needed,
44+
`(max concurrent queries * shard count)`, shouldn't exceed the total
45+
connections possible in the system, `(number of workers * max_connections per
46+
worker)`.
4647

4748
## Next steps
4849

0 commit comments

Comments
 (0)