File: workload_configs.py

package info (click to toggle)
python-azure 20251104%2Bgit-1
  • links: PTS, VCS
  • area: main
  • in suites: forky, sid
  • size: 770,224 kB
  • sloc: python: 6,357,217; ansic: 804; javascript: 287; makefile: 198; sh: 193; xml: 109
file content (25 lines) | stat: -rw-r--r-- 768 bytes parent folder | download
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
# The MIT License (MIT)
# Copyright (c) Microsoft Corporation. All rights reserved.
# Replace with your Cosmos DB details
import logging
from azure.identity import DefaultAzureCredential

PREFERRED_LOCATIONS = []
CLIENT_EXCLUDED_LOCATIONS = []
REQUEST_EXCLUDED_LOCATIONS = []
COSMOS_PROXY_URI = "0.0.0.0"
COSMOS_URI = ""
COSMOS_KEY = ""
COSMOS_CREDENTIAL = COSMOS_KEY if COSMOS_KEY else DefaultAzureCredential()
COSMOS_CONTAINER = "scale_cont"
COSMOS_DATABASE = "scale_db"
USER_AGENT_PREFIX = ""
LOG_LEVEL = logging.DEBUG
APP_INSIGHTS_CONNECTION_STRING = ""
CIRCUIT_BREAKER_ENABLED = False
USE_MULTIPLE_WRITABLE_LOCATIONS = False
CONCURRENT_REQUESTS = 100
CONCURRENT_QUERIES = 2
PARTITION_KEY = "id" # id or pk
NUMBER_OF_LOGICAL_PARTITIONS = 10000
THROUGHPUT = 100000