Skip to content

Commit 6469992

Browse files
authored
Hadr (#6)
* statefulset for sql database turns out not working currently. need more investigation * . * . * . * .
1 parent 18303ea commit 6469992

File tree

17 files changed

+1202
-55
lines changed

17 files changed

+1202
-55
lines changed

.carbon/settings.json

+159
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,159 @@
1+
// Place your settings in this file to overwrite default and user settings.
2+
{
3+
"dashboard.database.widgets": [
4+
{
5+
"provider": "MSSQL",
6+
"name": "QDS: Top 5 slowest queries",
7+
"gridItemConfig": {
8+
"sizex": 2,
9+
"sizey": 1
10+
},
11+
"widget": {
12+
"query-data-store-julie-koesmarno": null
13+
}
14+
},
15+
{
16+
"provider": "MSSQL",
17+
"name": "Missing index and PKs",
18+
"gridItemConfig": {
19+
"sizex": 1,
20+
"sizey": 1
21+
},
22+
"widget": {
23+
"missing-index-pk-julie-koesmarno": null
24+
}
25+
},
26+
{
27+
"provider": "MSSQL",
28+
"gridItemConfig": {
29+
"sizex": 1,
30+
"sizey": 1
31+
},
32+
"name": "Disk Usage",
33+
"widget": {
34+
"disk-usage-db-insight": null
35+
}
36+
},
37+
{
38+
"provider": "MSSQL",
39+
"edition": [
40+
1,
41+
2,
42+
3,
43+
4
44+
],
45+
"gridItemConfig": {
46+
"sizex": 1,
47+
"sizey": 1
48+
},
49+
"name": "Data file space usage (MB)",
50+
"widget": {
51+
"data-file-space-db-insight": null
52+
}
53+
},
54+
{
55+
"provider": "MSSQL",
56+
"name": "Space used by tables",
57+
"widget": {
58+
"table-space-db-insight": null
59+
},
60+
"gridItemConfig": {
61+
"sizex": 2,
62+
"sizey": 1
63+
}
64+
},
65+
{
66+
"gridItemConfig": {
67+
"sizex": 1,
68+
"sizey": 1
69+
},
70+
"widget": {
71+
"explorer-widget": {}
72+
}
73+
},
74+
{
75+
"name": "Tasks",
76+
"gridItemConfig": {
77+
"sizex": 1,
78+
"sizey": 1
79+
},
80+
"widget": {
81+
"tasks-widget": {}
82+
}
83+
}
84+
],
85+
"dashboard.server.widgets": [
86+
{
87+
"gridItemConfig": {
88+
"sizex": 1,
89+
"sizey": 1
90+
},
91+
"widget": {
92+
"explorer-widget": {}
93+
}
94+
},
95+
{
96+
"provider": "MSSQL",
97+
"name": "Database status",
98+
"gridItemConfig": {
99+
"sizex": 1,
100+
"sizey": 1
101+
},
102+
"widget": {
103+
"database-state-julie-koesmarno": null
104+
}
105+
},
106+
{
107+
"provider": "MSSQL",
108+
"name": "Backups older than 24 hours",
109+
"widget": {
110+
"backup-history-server-insight": null
111+
}
112+
},
113+
{
114+
"provider": "MSSQL",
115+
"name": "Memory usage by database",
116+
"gridItemConfig": {
117+
"sizex": 2,
118+
"sizey": 1
119+
},
120+
"widget": {
121+
"memory-usage-by-db-server-insight": null
122+
}
123+
},
124+
{
125+
"provider": "MSSQL",
126+
"name": "Database growth",
127+
"widget": {
128+
"backup-growth-trend-server-insight": null
129+
},
130+
"gridItemConfig": {
131+
"sizex": 2,
132+
"sizey": 1
133+
}
134+
},
135+
{
136+
"provider": "MSSQL",
137+
"name": "CPU utilization",
138+
"gridItemConfig": {
139+
"sizex": 2,
140+
"sizey": 1
141+
},
142+
"widget": {
143+
"cpu-utilization-server-insight": null
144+
}
145+
},
146+
{
147+
"name": "Tasks",
148+
"widget": {
149+
"tasks-widget": {}
150+
},
151+
"gridItemConfig": {
152+
"sizex": 2,
153+
"sizey": 1
154+
}
155+
}
156+
157+
],
158+
"python.linting.pylintEnabled": false
159+
}

.gitignore

-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,6 @@ db/obj
44
/db_tests/WideWorldImporters/debug
55
nul
66
/test_runner/node_modules
7-
.vscode
87
*.bak
98
*.deb
109
*.swp

.vscode/launch.json

+224
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,224 @@
1+
{
2+
// Use IntelliSense to learn about possible attributes.
3+
// Hover to view descriptions of existing attributes.
4+
// For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387
5+
"version": "0.2.0",
6+
"configurations": [
7+
{
8+
"name": "Python",
9+
"type": "python",
10+
"request": "launch",
11+
"stopOnEntry": true,
12+
"pythonPath": "${config:python.pythonPath}",
13+
"program": "${file}",
14+
"cwd": "${workspaceRoot}",
15+
"env": {},
16+
"envFile": "${workspaceRoot}/.env",
17+
"debugOptions": [
18+
"WaitOnAbnormalExit",
19+
"WaitOnNormalExit",
20+
"RedirectOutput"
21+
]
22+
},
23+
{
24+
"name": "Python",
25+
"type": "python",
26+
"request": "launch",
27+
"stopOnEntry": true,
28+
"pythonPath": "${config:python.pythonPath}",
29+
"program": "${file}",
30+
"cwd": "${workspaceRoot}",
31+
"env": {},
32+
"envFile": "${workspaceRoot}/.env",
33+
"debugOptions": [
34+
"WaitOnAbnormalExit",
35+
"WaitOnNormalExit",
36+
"RedirectOutput"
37+
]
38+
},
39+
{
40+
"name": "PySpark",
41+
"type": "python",
42+
"request": "launch",
43+
"stopOnEntry": true,
44+
"osx": {
45+
"pythonPath": "${env:SPARK_HOME}/bin/spark-submit"
46+
},
47+
"windows": {
48+
"pythonPath": "${env:SPARK_HOME}/bin/spark-submit.cmd"
49+
},
50+
"linux": {
51+
"pythonPath": "${env:SPARK_HOME}/bin/spark-submit"
52+
},
53+
"program": "${file}",
54+
"cwd": "${workspaceRoot}",
55+
"env": {},
56+
"envFile": "${workspaceRoot}/.env",
57+
"debugOptions": [
58+
"WaitOnAbnormalExit",
59+
"WaitOnNormalExit",
60+
"RedirectOutput"
61+
]
62+
},
63+
{
64+
"name": "Python Module",
65+
"type": "python",
66+
"request": "launch",
67+
"stopOnEntry": true,
68+
"pythonPath": "${config:python.pythonPath}",
69+
"module": "module.name",
70+
"cwd": "${workspaceRoot}",
71+
"env": {},
72+
"envFile": "${workspaceRoot}/.env",
73+
"debugOptions": [
74+
"WaitOnAbnormalExit",
75+
"WaitOnNormalExit",
76+
"RedirectOutput"
77+
]
78+
},
79+
{
80+
"name": "Integrated Terminal/Console",
81+
"type": "python",
82+
"request": "launch",
83+
"stopOnEntry": true,
84+
"pythonPath": "${config:python.pythonPath}",
85+
"program": "${file}",
86+
"cwd": "",
87+
"console": "integratedTerminal",
88+
"env": {},
89+
"envFile": "${workspaceRoot}/.env",
90+
"debugOptions": [
91+
"WaitOnAbnormalExit",
92+
"WaitOnNormalExit"
93+
]
94+
},
95+
{
96+
"name": "External Terminal/Console",
97+
"type": "python",
98+
"request": "launch",
99+
"stopOnEntry": true,
100+
"pythonPath": "${config:python.pythonPath}",
101+
"program": "${file}",
102+
"cwd": "",
103+
"console": "externalTerminal",
104+
"env": {},
105+
"envFile": "${workspaceRoot}/.env",
106+
"debugOptions": [
107+
"WaitOnAbnormalExit",
108+
"WaitOnNormalExit"
109+
]
110+
},
111+
{
112+
"name": "Django",
113+
"type": "python",
114+
"request": "launch",
115+
"stopOnEntry": true,
116+
"pythonPath": "${config:python.pythonPath}",
117+
"program": "${workspaceRoot}/manage.py",
118+
"cwd": "${workspaceRoot}",
119+
"args": [
120+
"runserver",
121+
"--noreload",
122+
"--nothreading"
123+
],
124+
"env": {},
125+
"envFile": "${workspaceRoot}/.env",
126+
"debugOptions": [
127+
"WaitOnAbnormalExit",
128+
"WaitOnNormalExit",
129+
"RedirectOutput",
130+
"DjangoDebugging"
131+
]
132+
},
133+
{
134+
"name": "Flask",
135+
"type": "python",
136+
"request": "launch",
137+
"stopOnEntry": false,
138+
"pythonPath": "${config:python.pythonPath}",
139+
"program": "fully qualified path fo 'flask' executable. Generally located along with python interpreter",
140+
"cwd": "${workspaceRoot}",
141+
"env": {
142+
"FLASK_APP": "${workspaceRoot}/quickstart/app.py"
143+
},
144+
"args": [
145+
"run",
146+
"--no-debugger",
147+
"--no-reload"
148+
],
149+
"envFile": "${workspaceRoot}/.env",
150+
"debugOptions": [
151+
"WaitOnAbnormalExit",
152+
"WaitOnNormalExit",
153+
"RedirectOutput"
154+
]
155+
},
156+
{
157+
"name": "Flask (old)",
158+
"type": "python",
159+
"request": "launch",
160+
"stopOnEntry": false,
161+
"pythonPath": "${config:python.pythonPath}",
162+
"program": "${workspaceRoot}/run.py",
163+
"cwd": "${workspaceRoot}",
164+
"args": [],
165+
"env": {},
166+
"envFile": "${workspaceRoot}/.env",
167+
"debugOptions": [
168+
"WaitOnAbnormalExit",
169+
"WaitOnNormalExit",
170+
"RedirectOutput"
171+
]
172+
},
173+
{
174+
"name": "Pyramid",
175+
"type": "python",
176+
"request": "launch",
177+
"stopOnEntry": true,
178+
"pythonPath": "${config:python.pythonPath}",
179+
"cwd": "${workspaceRoot}",
180+
"env": {},
181+
"envFile": "${workspaceRoot}/.env",
182+
"args": [
183+
"${workspaceRoot}/development.ini"
184+
],
185+
"debugOptions": [
186+
"WaitOnAbnormalExit",
187+
"WaitOnNormalExit",
188+
"RedirectOutput",
189+
"Pyramid"
190+
]
191+
},
192+
{
193+
"name": "Watson",
194+
"type": "python",
195+
"request": "launch",
196+
"stopOnEntry": true,
197+
"pythonPath": "${config:python.pythonPath}",
198+
"program": "${workspaceRoot}/console.py",
199+
"cwd": "${workspaceRoot}",
200+
"args": [
201+
"dev",
202+
"runserver",
203+
"--noreload=True"
204+
],
205+
"env": {},
206+
"envFile": "${workspaceRoot}/.env",
207+
"debugOptions": [
208+
"WaitOnAbnormalExit",
209+
"WaitOnNormalExit",
210+
"RedirectOutput"
211+
]
212+
},
213+
{
214+
"name": "Attach (Remote Debug)",
215+
"type": "python",
216+
"request": "attach",
217+
"localRoot": "${workspaceRoot}",
218+
"remoteRoot": "${workspaceRoot}",
219+
"port": 3000,
220+
"secret": "my_secret",
221+
"host": "localhost"
222+
}
223+
]
224+
}

0 commit comments

Comments
 (0)