Creating a new Monorail instance
- Create new GAE apps for production and staging.
- Configure GCP billing.
- Fork settings.py and configure every part of it, especially trusted domains and "all" email settings.
- Change num_logical_shards to the number of read replicas you want.
- You might want to also update
*/*_constants.py
files.
- Create new primary DB and an appropriate number of read replicas for prod and staging.
- Set up IP address and configure admin password and allowed IP addr. Instructions.
- Set up backups on primary DB. The first backup must be created before you can configure replicas.
- Set up log saving to bigquery or something.
- Set up monitoring and alerts.
- Set up attachment storage in GCS.
- Set up spam data and train models.
- Fork and customize some of HTML in templates/framework/header.ezt, footer.ezt, and some CSS to give the instance a visually different appearance.
- Get From-address allowlisted so that the "View issue" link in Gmail/Inbox works.
- Set up a custom domain with SSL and get that configured into GAE. Make sure to have some kind of reminder system set up so that you know before cert expire.
- Configure the API. Details? Allowed clients are now configured through luci-config, so that is a whole other thing to set up. (Or, maybe decide not to offer any API access.)
- Gain permission to sync GGG user groups. Set up borgcron job to sync user groups. Configure that job to hit the API for your instance. (Or, maybe decide not to sync any user groups.)
- Monorail does not not access any internal APIs, so no allowlisting is required.
- For projects on code.google.com, coordinate with that team to set flags to do per-issue redirects from old project to new site. As each project is imported, set it's moved-to field.