Front50: Cassandra to Redis

Migrate from Cassandra to Redis.

1. Install Redis

2. Disable Cassandra in front50.yml

  1. cassandra:
  2. enabled: false

3. Enable Redis in front50.yml

  1. spinnaker:
  2. redis:
  3. enabled: true

4. Export existing applications, pipelines, strategies, notifications and projects

  1. #!/bin/sh
  2. rm applications.json
  3. curl http://FRONT50_HOSTNAME:FRONT50_PORT/global/applications | json_pp > applications.json
  4. rm pipelines.json
  5. curl http://FRONT50_HOSTNAME:FRONT50_PORT/pipelines | json_pp > pipelines.json
  6. rm strategies.json
  7. curl http://FRONT50_HOSTNAME:FRONT50_PORT/strategies | json_pp > strategies.json
  8. rm notifications.json
  9. curl http://FRONT50_HOSTNAME:FRONT50_PORT/notifications | json_pp > notifications.json
  10. rm projects.json
  11. curl http://FRONT50_HOSTNAME:FRONT50_PORT/v2/projects | json_pp | jq '._embedded.projects' > projects.json

5. Deploy new Front50

6. Import applications, pipelines, strategies, notifications and projects

  1. #!/bin/sh
  2. curl -X POST -H "Content-type: application/json" --data-binary @"notifications.json" http://FRONT50_HOSTNAME:FRONT50_PORT/notifications/batchUpdate
  3. curl -X POST -H "Content-type: application/json" --data-binary @"strategies.json" http://FRONT50_HOSTNAME:FRONT50_PORT/strategies/batchUpdate
  4. curl -X POST -H "Content-type: application/json" --data-binary @"pipelines.json" http://FRONT50_HOSTNAME:FRONT50_PORT/pipelines/batchUpdate
  5. curl -X POST -H "Content-type: application/json" --data-binary @"applications.json" http://FRONT50_HOSTNAME:FRONT50_PORT/global/applications/batchUpdate
  6. curl -X POST -H "Content-type: application/json" --data-binary @"projects.json" http://FRONT50_HOSTNAME:FRONT50_PORT/v2/projects/batchUpdate

Last modified October 8, 2020: docs(headers): shorten linkTitle and description where applicable (68701bc)