...
Before we switch over, let's ensure that any last minute remaining changes are sent over. Shut down all of packagecloud:enterprise services (except the database):
No Format packagecloud-ctl stop nginx packagecloud-ctl stop unicorn packagecloud-ctl stop rainbows packagecloud-ctl stop resque
- Wait a few moments and keep refreshing 'Table Statistics' and 'Task monitoring' until all tables have a 'Validation State' of 'Validated' and CDCIncomingChanges is at 0 again. This might be immediate if there were no changes left to replicate.
Edit '/etc/packagecloud/packagecloud.rb' and make the following changes:
No Format packagecloud_rails['database_host'] = 'packagecloud.xxxxxxxxxxxx.us-east-1.rds.amazonaws.com' packagecloud_rails['database_user'] = 'external' packagecloud_rails['database_password'] = 'xxxxxxxx' packagecloud_rails['database_port'] = 3306 packagecloud_rails['database_name'] = 'packages_onpremise' packagecloud_rails['database_ssl'] = true packagecloud_rails['rds_ssl'] = true
Comment out, or delete the following lines:
No Format #mysql['ssl_enabled'] = true #mysql['bind_address'] = "0.0.0.0" #mysql['port'] = 3306
- Navigate back to DMS 'Tasks' section and click 'Stop' on the migration task we created.
Then reconfigure and restart:
No Format packagecloud-ctl reconfigure packagecloud-ctl restart
- Your packagecloud:enterprise instance should now be talking to your Target Instance!
...