Skip to content
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

Rebuild Kingfisher server #402

Closed
11 tasks done
jpmckinney opened this issue Jan 11, 2023 · 5 comments
Closed
11 tasks done

Rebuild Kingfisher server #402

jpmckinney opened this issue Jan 11, 2023 · 5 comments
Labels
S: kingfisher Relating to the Kingfisher servers
Milestone

Comments

@jpmckinney
Copy link
Member

jpmckinney commented Jan 11, 2023

Moving from CRM-8007

It will be easier to deploy the new Kingfisher Process version with a new, empty database where all the new tables schemas can be applied instead of planning a migration for the current tables.

  • We can re-use most of the data registry's configuration.
  • Check whether non-OCP postgres users are still using their logins (point them to the data registry instead)
  • Remove the "Kingfisher personal SQL user account" issue template (and any links to it)

To do after PR merge:

  • Add Redash data source for new server
  • Merge upgrade-jsonschema in kingfisher-collect and change to main branch in this repo
  • Update Redash data source to use postgres.kingfisher.open-contracting.org (instead of ocp23)
  • Update collect.kingfisher CNAME
  • Delete process.kingfisher CNAME
  • Deploy docs server to apply tinyproxy changes to allowed IPs
  • I think we can not have the CNAME process.kingfisher and process1.kingfisher (we have enough with collect.kingfisher, postgres.kingfisher, etc.)
  • Notify korsikov/Yaroslav/Sergey and Vadim on Slack of the new domain name and database name (kingfisher_collect) for Qlik BI
@jpmckinney jpmckinney added the S: kingfisher Relating to the Kingfisher servers label Jan 11, 2023
@jpmckinney jpmckinney added this to the High priority milestone Jan 11, 2023
@jpmckinney
Copy link
Member Author

jpmckinney commented Jan 26, 2023

See this milestone for some issues to ideally close before the new deployment: https://github.com/open-contracting/kingfisher-process/milestone/7

Edit: Moved off-topic comment to open-contracting/data-registry#291

@jpmckinney
Copy link
Member Author

jpmckinney commented May 25, 2023

Once this is done, I can also upgrade the requirements files for:

And set python-version: '3.10' in workflows for:

  • kingfisher-collect
  • kingfisher-summarize

Kingfisher Process is deployed as 3.8 on the registry server. While we could update the Docker image to 3.10, we might as well wait until 3.8 is EOL (in about a year and a half). Also, workflows already use ubuntu-latest.

Also these PRs/issues:

@jpmckinney
Copy link
Member Author

jpmckinney commented May 26, 2023

Okay, Kingfisher Collect and Summarize are ready for Python 3.10.

To test the deployment, you can use the branches upgrade-jsonschema (Collect) and 190-filter-sql-json-path (Summarize).

@jpmckinney
Copy link
Member Author

jpmckinney commented May 27, 2023

To do:

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
S: kingfisher Relating to the Kingfisher servers
Projects
None yet
Development

No branches or pull requests

1 participant