Skip to content

Commit

Permalink
Unify ports for database, BucketFS, and SSH (#354)
Browse files Browse the repository at this point in the history
Co-authored-by: Torsten Kilias <[email protected]>
Co-authored-by: Torsten Kilias <[email protected]>
  • Loading branch information
3 people authored Jul 4, 2023
1 parent 985abe2 commit 390968a
Show file tree
Hide file tree
Showing 58 changed files with 258 additions and 290 deletions.
1 change: 1 addition & 0 deletions doc/changes/changes_2.0.0.md
Original file line number Diff line number Diff line change
Expand Up @@ -26,3 +26,4 @@ If you need further versions, please open an issue.

* #329: Added CLI option `--ssh-port-forward` to forward SSH port
* #343: Added SshInfo to DatabaseInfo containing user, port and path to SSH key file
* #308: Unified ports for database, BucketFS, and SSH
4 changes: 2 additions & 2 deletions doc/user_guide/user_guide.rst
Original file line number Diff line number Diff line change
Expand Up @@ -244,8 +244,8 @@ The following config files are available:

# Database IP in environment docker network
export ITDE_DATABASE_HOST=172.21.0.2
export ITDE_DATABASE_DB_PORT=8888
export ITDE_DATABASE_BUCKETFS_PORT=6583
export ITDE_DATABASE_DB_PORT=8563
export ITDE_DATABASE_BUCKETFS_PORT=2580
export ITDE_DATABASE_SSH_PORT=22
export ITDE_DATABASE_CONTAINER_NAME=db_container_test
export ITDE_DATABASE_CONTAINER_NETWORK_ALIASES="exasol_test_database db_container_test"
Expand Down
8 changes: 3 additions & 5 deletions docker_db_config_template/7.0.0/EXAConf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Platform = Docker
LicenseFile = /exa/etc/license.xml
CoredPort = 10001
SSHPort = 22
SSHPort = {{ ssh_port }}
XMLRPCPort = 443
AuthenticationToken = WG9JQkZYb0R5T1pIcWZPWTpyUHFsR3V6QUFkV1FQbHZmdm91cXJDYmNQTFl4eE1vRlZ6VnhxamdxYnpxUGRkZEhtR2NJaVVGbEpsb2NnbnRZ
# List of networks for this cluster: 'private' is mandatory, 'public' is optional.
Expand Down Expand Up @@ -74,8 +74,6 @@
Name = n11
UUID = A5F8F92113A34BA4B0A48D5397423BBA5CF95161
DockerVolume = n11
# Ports to be exposed (container : host)
ExposedPorts = 8888:8899, 6583:6594
[[Disk : disk1]]
Component = exastorage
Devices = dev.1
Expand Down Expand Up @@ -121,7 +119,7 @@
Version = {{ db_version }}
# Memory size over all nodes (e. g. '1 TiB').
MemSize = {{ mem_size }}
Port = 8888
Port = {{ db_port }}
# User and group IDs that own this database (e. g. '1000:1005').
Owner = 500 : 500
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
Expand Down Expand Up @@ -155,7 +153,7 @@
[BucketFS : bfsdefault]
Owner = 500:500
# HTTP port number (0 = disabled)
HttpPort = 6583
HttpPort = {{ bucketfs_port }}
# HTTPS port number (0 = disabled)
HttpsPort = 0
SyncKey = OGhvcmxrTnluTlFrZTV3RVBTWG5Idlc4bkVMQUNxcWs=
Expand Down
8 changes: 3 additions & 5 deletions docker_db_config_template/7.1.0/EXAConf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Platform = Docker
LicenseFile = /exa/etc/license.xml
CoredPort = 10001
SSHPort = 22
SSHPort = {{ ssh_port }}
XMLRPCPort = 443
WebUIBackendPort = 4444
WebUIDomain = exacluster.local
Expand Down Expand Up @@ -88,8 +88,6 @@
Affinity = 11
UUID = 02F4E2AF9C294CABA0A119A89AC60B44EC95D19C
DockerVolume = n11
# Ports to be exposed (container : host)
ExposedPorts = 8888:8899, 6583:6594
[[Disk : disk1]]
Component = exastorage
Devices = dev.1
Expand Down Expand Up @@ -135,7 +133,7 @@
Version = {{ db_version }}
# Memory size over all nodes (e. g. '1 TiB').
MemSize = {{ mem_size }}
Port = 8888
Port = {{ db_port }}
# User and group IDs that own this database (e. g. '1000:1005').
Owner = 500 : 500
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
Expand Down Expand Up @@ -172,7 +170,7 @@
[BucketFS : bfsdefault]
Owner = 500 : 500
# HTTP port number (0 = disabled)
HttpPort = 6583
HttpPort = {{ bucketfs_port }}
# HTTPS port number (0 = disabled)
HttpsPort = 0
SyncKey = c3RxWjRxWUFpZUFQblEyc0p2djZUM0VZamVZa1M0bUs=
Expand Down
12 changes: 6 additions & 6 deletions docker_db_config_template/8.17.0/EXAConf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Platform = Docker
LicenseFile = /exa/etc/license.exasol_license
CoredPort = 325
SSHPort = 22
SSHPort = {{ ssh_port }}
IssueTracker = Jira
XMLRPCPort = 443
WebUIBackendPort = 4444
Expand Down Expand Up @@ -104,8 +104,6 @@
Affinity = 11
UUID = F0EA64D47F374A00B0530772981C559EE1C59086
DockerVolume = n11
# Ports to be exposed (container : host)
ExposedPorts = 8888:8899, 6583:6594
[[Disk : disk1]]
Component = exastorage
Devices = dev.1
Expand Down Expand Up @@ -159,7 +157,7 @@
Version = {{ db_version }}
# Memory size over all nodes (e. g. '1 TiB').
MemSize = {{ mem_size }}
Port = 8888
Port = {{ db_port }}
# User and group IDs that own this database (e. g. '1000:1005').
Owner = 500 : 500
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
Expand All @@ -172,7 +170,9 @@
BuiltinScriptLanguageName = slc-6.0.0-c4-5-standard-EXASOL-8.0.0/ScriptLanguages-standard-EXASOL-8.0.0-slc-v6.0.0-PB5EHDLN
AutoStart = True
{% if additional_db_parameters %}
Params = {{ additional_db_parameters }}
Params = -sandboxCHROOT=/opt/exasol/cos-8.28.0/sbin/nsexec_chroot {{ additional_db_parameters }}
{% else %}
Params = -sandboxCHROOT=/opt/exasol/cos-8.28.0/sbin/nsexec_chroot
{% endif %}

# JDBC driver configuration
Expand All @@ -198,7 +198,7 @@
[BucketFS : bfsdefault]
Owner = 500 : 500
# HTTP port number (0 = disabled)
HttpPort = 6583
HttpPort = {{ bucketfs_port }}
# HTTPS port number (0 = disabled)
HttpsPort = 0
SyncKey = bDRYa3pCNXRwaW9OR3k2NjJ2TGpyQ3YweXZEOVUyanQ=
Expand Down
8 changes: 3 additions & 5 deletions docker_db_config_template/8.18.1/EXAConf
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
Platform = Docker
LicenseFile = /exa/etc/license.exasol_license
CoredPort = 325
SSHPort = 22
SSHPort = {{ ssh_port }}
IssueTracker = Jira
XMLRPCPort = 443
WebUIBackendPort = 4444
Expand Down Expand Up @@ -104,8 +104,6 @@
Affinity = 11
UUID = F0EA64D47F374A00B0530772981C559EE1C59086
DockerVolume = n11
# Ports to be exposed (container : host)
ExposedPorts = 8888:8899, 6583:6594
[[Disk : disk1]]
Component = exastorage
Devices = dev.1
Expand Down Expand Up @@ -159,7 +157,7 @@
Version = {{ db_version }}
# Memory size over all nodes (e. g. '1 TiB').
MemSize = {{ mem_size }}
Port = 8888
Port = {{ db_port }}
# User and group IDs that own this database (e. g. '1000:1005').
Owner = 500 : 500
# Comma-separated list of node IDs for this DB (put reserve nodes at the end, if any).
Expand Down Expand Up @@ -200,7 +198,7 @@
[BucketFS : bfsdefault]
Owner = 500 : 500
# HTTP port number (0 = disabled)
HttpPort = 6583
HttpPort = {{ bucketfs_port }}
# HTTPS port number (0 = disabled)
HttpsPort = 0
SyncKey = bDRYa3pCNXRwaW9OR3k2NjJ2TGpyQ3YweXZEOVUyanQ=
Expand Down
2 changes: 1 addition & 1 deletion exasol_integration_test_docker_environment/cli/cli.py
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ def cli():
Spawn an ITDE test environment:
$ itde spawn-test-environment --environment-name test \\
--database-port-forward 8888 --bucketfs-port-forward 6666 \\
--database-port-forward 8563 --bucketfs-port-forward 2580 \\
--docker-db-image-version 7.1.9 --db-mem-size 4GB
"""
pass

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Loading

0 comments on commit 390968a

Please sign in to comment.