-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbiengine-script.html
More file actions
164 lines (115 loc) · 5.88 KB
/
biengine-script.html
File metadata and controls
164 lines (115 loc) · 5.88 KB
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
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="utf-8" />
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
<meta name="HandheldFriendly" content="True" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<meta name="robots" content="index, follow" />
<link href="https://fonts.googleapis.com/css2?family=Source+Code+Pro:ital,wght@0,400;0,700;1,400&family=Source+Sans+Pro:ital,wght@0,300;0,400;0,700;1,400&display=swap" rel="stylesheet">
<link rel="stylesheet/less" type="text/css" href="https://tobtob.de/theme/stylesheet/style.less">
<script src="//cdnjs.cloudflare.com/ajax/libs/less.js/2.5.1/less.min.js" type="text/javascript"></script>
<link id="pygments-light-theme" rel="stylesheet" type="text/css"
href="https://tobtob.de/theme/pygments/github.min.css">
<script src="https://tobtob.de/theme/js/lite-yt-embed.js"></script>
<link rel="stylesheet" type="text/css" href="https://tobtob.de/theme/font-awesome/css/fontawesome.css">
<link rel="stylesheet" type="text/css" href="https://tobtob.de/theme/font-awesome/css/brands.css">
<link rel="stylesheet" type="text/css" href="https://tobtob.de/theme/font-awesome/css/solid.css">
<link rel="stylesheet" type="text/css" href="https://tobtob.de/theme/stylesheet/lite-yt-embed.css">
<link href="https://tobtob.de/feeds/all.atom.xml" type="application/atom+xml" rel="alternate" title="Tobias Kaymak"s Blog Atom">
<meta name="author" content="Tobias Kaymak" />
<meta name="description" content="I wrote a small Python script to be able to create and delete BI Engine reservations for Google Cloud BigQuery. I used this script in a cronjob to disable BI Engine on the weekends/during the nights to save some costs and see how well the system is with and …" />
<meta name="keywords" content="">
<meta property="og:site_name" content="Tobias Kaymak"s Blog"/>
<meta property="og:title" content="Python script to control BI Engine Reservations"/>
<meta property="og:description" content="I wrote a small Python script to be able to create and delete BI Engine reservations for Google Cloud BigQuery. I used this script in a cronjob to disable BI Engine on the weekends/during the nights to save some costs and see how well the system is with and …"/>
<meta property="og:locale" content="en_US"/>
<meta property="og:url" content="https://tobtob.de/biengine-script.html"/>
<meta property="og:type" content="article"/>
<meta property="article:published_time" content="2022-05-07 00:00:00+02:00"/>
<meta property="article:modified_time" content=""/>
<meta property="article:author" content="https://tobtob.de/author/tobias-kaymak.html">
<meta property="article:section" content="Google BigQuery"/>
<meta property="og:image" content="https://tobtob.de/images/profile.png">
<title>Tobias Kaymak"s Blog – Python script to control BI Engine Reservations</title>
</head>
<body class="light-theme">
<aside>
<div>
<a href="https://tobtob.de/">
<img src="https://tobtob.de/images/profile.png" alt="Random Notes about Data Engineering" title="Random Notes about Data Engineering">
</a>
<h1>
<a href="https://tobtob.de/">Random Notes about Data Engineering</a>
</h1>
<p>Tobias Kaymak</p>
<nav>
<ul class="list">
<li>
<a target="_self"
href="https://tobtob.de/about.html#about">
about
</a>
</li>
</ul>
</nav>
<ul class="social">
<li>
<a class="sc-linkedin" href="https://www.linkedin.com/in/tobias-kaymak/" target="_blank">
<i class="fab fa-linkedin"></i>
</a>
</li>
<li>
<a class="sc-github" href="https://github.com/tkaymak" target="_blank">
<i class="fab fa-github"></i>
</a>
</li>
<li>
<a class="sc-stack-overflow" href="https://stackoverflow.com/users/5497956/tobi" target="_blank">
<i class="fab fa-stack-overflow"></i>
</a>
</li>
</ul>
</div>
</aside>
<main>
<nav>
<a href="https://tobtob.de/">Home</a>
<a href="/archives.html">Archives</a>
<a href="/categories.html">Categories</a>
<a href="https://tobtob.de/feeds/all.atom.xml">Atom</a>
</nav>
<article class="single">
<header>
<h1 id="biengine-script">Python script to control BI Engine Reservations</h1>
<p>
Posted on Sat 07 May 2022 in <a href="https://tobtob.de/category/google-bigquery.html">Google BigQuery</a>
</p>
</header>
<div>
<p>I wrote a small Python script to be able to create and delete <a href="https://cloud.google.com/bigquery/docs/bi-engine-intro">BI Engine</a> reservations for Google Cloud <a href="https://cloud.google.com/bigquery/docs/introduction">BigQuery</a>. I used this script in a cronjob to disable BI Engine on the weekends/during the nights to save some costs and see how well the system is with and without pre-warmed caches. To run it you need to install the <a href="https://pypi.org/project/google-cloud-bigquery-reservation/">google-cloud-bigquery-reservation</a> library.</p>
<script src="https://gist.github.com/tkaymak/a130e7c1523c66f6fea741cf9df7989f.js"></script>
</div>
<div class="tag-cloud">
<p>
</p>
</div>
</article>
<footer>
<p>© 2023 </p>
<p>
Built with <a href="http://getpelican.com" target="_blank">Pelican</a> using <a href="http://bit.ly/flex-pelican" target="_blank">Flex</a> theme
</p> </footer>
</main>
<script type="application/ld+json">
{
"@context" : "http://schema.org",
"@type" : "Blog",
"name": " Tobias Kaymak"s Blog ",
"url" : "https://tobtob.de",
"image": "https://tobtob.de/images/profile.png",
"description": "Random Notes about Data Engineering - the personal blog of Tobias Kaymak"
}
</script>
</body>
</html>