summaryrefslogtreecommitdiff
path: root/src/flagd
diff options
context:
space:
mode:
Diffstat (limited to 'src/flagd')
-rw-r--r--src/flagd/demo.flagd.json123
1 files changed, 123 insertions, 0 deletions
diff --git a/src/flagd/demo.flagd.json b/src/flagd/demo.flagd.json
new file mode 100644
index 0000000..f6cef9f
--- /dev/null
+++ b/src/flagd/demo.flagd.json
@@ -0,0 +1,123 @@
+{
+ "$schema": "https://flagd.dev/schema/v0/flags.json",
+ "flags": {
+ "productCatalogFailure": {
+ "description": "Fail product catalog service on a specific product",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "recommendationCacheFailure": {
+ "description": "Fail recommendation service cache",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "adManualGc": {
+ "description": "Triggers full manual garbage collections in the ad service",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "adHighCpu": {
+ "description": "Triggers high cpu load in the ad service",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "adFailure": {
+ "description": "Fail ad service",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "kafkaQueueProblems": {
+ "description": "Overloads Kafka queue while simultaneously introducing a consumer side delay leading to a lag spike",
+ "state": "ENABLED",
+ "variants": {
+ "on": 100,
+ "off": 0
+ },
+ "defaultVariant": "off"
+ },
+ "cartFailure": {
+ "description": "Fail cart service",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "paymentFailure": {
+ "description": "Fail payment service charge requests n%",
+ "state": "ENABLED",
+ "variants": {
+ "100%": 1,
+ "90%": 0.95,
+ "75%": 0.75,
+ "50%": 0.5,
+ "25%": 0.25,
+ "10%": 0.1,
+ "off": 0
+ },
+ "defaultVariant": "off"
+ },
+ "paymentUnreachable": {
+ "description": "Payment service is unavailable",
+ "state": "ENABLED",
+ "variants": {
+ "on": true,
+ "off": false
+ },
+ "defaultVariant": "off"
+ },
+ "loadGeneratorFloodHomepage": {
+ "description": "Flood the frontend with a large amount of requests.",
+ "state": "ENABLED",
+ "variants": {
+ "on": 100,
+ "off": 0
+ },
+ "defaultVariant": "off"
+ },
+ "imageSlowLoad": {
+ "description": "slow loading images in the frontend",
+ "state": "ENABLED",
+ "variants": {
+ "10sec": 10000,
+ "5sec": 5000,
+ "off": 0
+ },
+ "defaultVariant": "off"
+ },
+ "emailMemoryLeak": {
+ "description": "Memory leak in the email service.",
+ "state": "ENABLED",
+ "variants": {
+ "off": 0,
+ "1x": 1,
+ "10x": 10,
+ "100x": 100,
+ "1000x": 1000,
+ "10000x": 10000
+ },
+ "defaultVariant": "off"
+ }
+ }
+}