-
Notifications
You must be signed in to change notification settings - Fork 3
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Ubuntu20 redash #316
Ubuntu20 redash #316
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
For the docker-compose file, the differences are:
- remove postgres
- upgrade redis and add healthcheck
- change docker-compose file version
- change docker image tag
Co-authored-by: James McKinney <26463+jpmckinney@users.noreply.github.com>
…into ubuntu20-redash
@jpmckinney , this PR is ready to review. I have...
I have also imported the database from the old server onto ocp14 and tested, confirming the app is working fine :) |
Noting migration steps:
sed -i 's/OWNER TO postgres/OWNER TO redash/g; /COMMENT ON DATABASE postgres/d' redash.sql
docker-compose run --rm server manage database reencrypt "old_secret_key" "new_secret_key"
Edit: Updated steps for latest process. |
…s to private file.
…n key. Re-order containers in dependency order.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Almost there!
dhcp6: no | ||
accept-ra: no | ||
addresses: | ||
{#- networkd makes the latest IP the primary IP so order matters here #} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume "latest" means "last"? I changed it to avoid ambiguity.
That said, https://www.linode.com/docs/guides/linux-static-ip-configuration/#ubuntu-1804-and-2004 puts the SLAAC address last. It also includes a private IP. I don't know if "IPv6 – Link Local" in Linode matches that private IP or is something else.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I assume "latest" means "last"? I changed it
✔✔
In my testing I've had lots of issues due to the ordering the IPv6 IPs. The config in this PR is the most reliable set up.
As I remember, putting SLAAC last will prioritise the other IPv6 address (from the Linode pool) over our IPv6 pool.
The server picks up the Link Local address automatically so no need for manual configuration.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I'm having trouble finding documentation about the priority order. This thread suggests that the first entry is prioritized, not the last: https://bugs.launchpad.net/netplan/+bug/1766656
The manpage for systemd-network doesn't seem to describe any ordering logic: https://manpages.ubuntu.com/manpages/bionic/man5/systemd.network.5.html
I read the Address=
description, and searched for first, last, order, priorit*, primary, secondary, additional, prefer.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Anyhow, the logic seems to be undocumented/unspecified, so if this config works, let's go ahead with the merge. I've added comments to the file, in case we later discover documented logic.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Agreed - the documentation around Netplan is poor.
I'm happy that this configuration is working fine on OCP14.
I will merge this PR tomorrow morning (20 Apr 2022). :)
This PR updates salt to deploy redash on the new ocp14 server running ubuntu 20.04 #145
I have also taken this opportunity to move postgres out of docker and upgrade it (closes #299). Because of this change and specifically
vm.overcommit_memory
, the memory requirements on this server has increased to needing at least 6GB SWAP / 4GB RAM (from 2GB SWAP / 4GB RAM)Few tasks are remaining before this is merged in:
@jpmckinney / @yolile , I can see redash is configured to send email through SES, what is this used for? If I import the database from ocp08 for testing will it trigger any emails?