-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
terra ansi done, slowly doing python, some problems with superset
- Loading branch information
Showing
19 changed files
with
340 additions
and
134 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
[flake8] | ||
max-line-length = 120 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,28 +1,34 @@ | ||
|
||
global_defs { | ||
vrrp_startup_delay 15 | ||
log_file "/opt/default/mysql_router/log/keepalived.log" | ||
enable_traps | ||
} | ||
|
||
vrrp_script status { | ||
script "/bin/killall -0 mysqlrouter" | ||
interval 2 | ||
interval 1 | ||
weight 2 | ||
} | ||
|
||
vrrp_instance virtual_instance { | ||
state ${STATE} | ||
interface ${VIRTUAL_NETWORK_INTERFACE} | ||
state "${STATE}" | ||
interface "${VIRTUAL_NETWORK_INTERFACE}" | ||
virtual_router_id 51 | ||
priority ${PRIORITY} | ||
advert_int 1 | ||
nopreempt | ||
garp_master_delay 2 | ||
track_script { | ||
status | ||
} | ||
track_interface { | ||
"${VIRTUAL_NETWORK_INTERFACE}" | ||
} | ||
virtual_ipaddress { | ||
${VIRTUAL_IP_ADDRESS}/${VIRTUAL_NETWORK_MASK} | ||
"${VIRTUAL_IP_ADDRESS}/${VIRTUAL_NETWORK_MASK}" | ||
} | ||
virtual_routes { | ||
${VIRTUAL_NETWORK} src ${VIRTUAL_IP_ADDRESS} metric 1 dev ${VIRTUAL_NETWORK_INTERFACE} scope link | ||
"${VIRTUAL_NETWORK}" src "${VIRTUAL_IP_ADDRESS}" metric 1 dev "${VIRTUAL_NETWORK_INTERFACE}" scope link | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,13 @@ | ||
{ | ||
"defaultAction": "SCMP_ACT_ALLOW", | ||
"architectures": [ | ||
"SCMP_ARCH_X86_64" | ||
"SCMP_ARCH_X86_64" | ||
], | ||
"syscalls": [ | ||
{ | ||
"names": [ | ||
"kill" | ||
], | ||
"action": "SCMP_ACT_ERRNO" | ||
} | ||
] | ||
{ | ||
"names": [ | ||
"kill" | ||
], | ||
"action": "SCMP_ACT_ERRNO" | ||
}] | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,38 @@ | ||
#!/usr/bin/expect -f | ||
|
||
spawn superset shell | ||
expect ">>>" | ||
send "import mysql_connect; mysql_connect.create_mysql_connection();\n" | ||
expect ">>>" | ||
send "exit()\n" | ||
set timeout 10 | ||
|
||
if {[catch {spawn superset shell} result]} { | ||
puts "Failed to start the Superset shell: $result" | ||
exit 1 | ||
} | ||
|
||
expect { | ||
">>>" { | ||
send "import mysql_connect; mysql_connect.create_mysql_connection()\n" | ||
} | ||
timeout { | ||
puts "Timeout while waiting for Superset shell prompt to create MySQL database connection" | ||
exit 1 | ||
} | ||
eof { | ||
puts "Superset shell prompt to create MySQL database connection terminated unexpectedly" | ||
exit 1 | ||
} | ||
} | ||
|
||
expect { | ||
">>>" { | ||
send "exit()\n" | ||
} | ||
timeout { | ||
puts "Timeout while waiting for Superset shell prompt to create MySQL database connection" | ||
exit 1 | ||
} | ||
eof { | ||
puts "Superset shell prompt to create MySQL database connection terminated unexpectedly" | ||
exit 1 | ||
} | ||
} | ||
|
||
expect eof |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.