{"__v":0,"_id":"573a20277f35072900c850b5","category":{"project":"55c6bec1b9aa4e0d0016c2c3","version":"55c6bec1b9aa4e0d0016c2c6","_id":"56f97e9a4c612020008f2eaf","__v":0,"sync":{"url":"","isSync":false},"reference":false,"createdAt":"2016-03-28T18:57:30.798Z","from_sync":false,"order":3,"slug":"migrations","title":"Migrations"},"parentDoc":null,"project":"55c6bec1b9aa4e0d0016c2c3","user":"57041a518572520e00d38e4a","version":{"__v":8,"_id":"55c6bec1b9aa4e0d0016c2c6","project":"55c6bec1b9aa4e0d0016c2c3","createdAt":"2015-08-09T02:45:21.683Z","releaseDate":"2015-08-09T02:45:21.683Z","categories":["55c6bec2b9aa4e0d0016c2c7","56c14bc5826df10d00e82230","56cceed8723ad71d00cae46c","56ccf29a431ada1f00e85aae","56ccf3c28fa8b01b00b82018","56ce1e6ee538330b0021ac5d","56f97e9a4c612020008f2eaf","5734fafd146eb82000597261"],"is_deprecated":false,"is_hidden":false,"is_beta":false,"is_stable":true,"codename":"","version_clean":"1.0.0","version":"1.0"},"updates":[],"next":{"pages":[],"description":""},"createdAt":"2016-05-16T19:31:51.515Z","link_external":false,"link_url":"","githubsync":"","sync_unique":"","hidden":false,"api":{"settings":"","results":{"codes":[]},"auth":"required","params":[],"url":""},"isReference":false,"order":2,"body":"## 1. Install Redis \n\n## 2. Disable Cassandra in front50.yml\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"cassandra:\\n  enabled: false\",\n      \"language\": \"yaml\"\n    }\n  ]\n}\n[/block]\n## 3. Enable Redis in front50.yml\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"spinnaker:\\n  redis:\\n    enabled: true\",\n      \"language\": \"yaml\"\n    }\n  ]\n}\n[/block]\n## 4. Export Existing Applications, Pipelines, Strategies, Notifications and Projects\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"#!/bin/sh\\n\\nrm applications.json\\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/global/applications | json_pp > applications.json\\n\\nrm pipelines.json\\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/pipelines | json_pp > pipelines.json\\n\\nrm strategies.json\\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/strategies | json_pp > strategies.json\\n\\nrm notifications.json\\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/notifications | json_pp > notifications.json\\n\\nrm projects.json\\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/v2/projects | json_pp | jq '._embedded.projects' > projects.json\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]\n## 5. Deploy new Front50\n\n## 6. Import Applications, Pipelines, Strategies, Notifications and Projects\n[block:code]\n{\n  \"codes\": [\n    {\n      \"code\": \"#!/bin/sh\\n\\ncurl -X POST -H \\\"Content-type: application/json\\\" --data-binary :::at:::\\\"notifications.json\\\" http://FRONT50_HOSTNAME:FRONT50_PORT/notifications/batchUpdate\\ncurl -X POST -H \\\"Content-type: application/json\\\" --data-binary @\\\"strategies.json\\\" http://FRONT50_HOSTNAME:FRONT50_PORT/strategies/batchUpdate\\ncurl -X POST -H \\\"Content-type: application/json\\\" --data-binary @\\\"pipelines.json\\\" http://FRONT50_HOSTNAME:FRONT50_PORT/pipelines/batchUpdate\\ncurl -X POST -H \\\"Content-type: application/json\\\" --data-binary @\\\"applications.json\\\" http://FRONT50_HOSTNAME:FRONT50_PORT/global/applications/batchUpdate\\ncurl -X POST -H \\\"Content-type: application/json\\\" --data-binary @\\\"projects.json\\\" http://FRONT50_HOSTNAME:FRONT50_PORT/v2/projects/batchUpdate\",\n      \"language\": \"shell\"\n    }\n  ]\n}\n[/block]","excerpt":"","slug":"front50-cassandra-to-redis","type":"basic","title":"Front50: Cassandra to Redis"}

Front50: Cassandra to Redis


## 1. Install Redis ## 2. Disable Cassandra in front50.yml [block:code] { "codes": [ { "code": "cassandra:\n enabled: false", "language": "yaml" } ] } [/block] ## 3. Enable Redis in front50.yml [block:code] { "codes": [ { "code": "spinnaker:\n redis:\n enabled: true", "language": "yaml" } ] } [/block] ## 4. Export Existing Applications, Pipelines, Strategies, Notifications and Projects [block:code] { "codes": [ { "code": "#!/bin/sh\n\nrm applications.json\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/global/applications | json_pp > applications.json\n\nrm pipelines.json\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/pipelines | json_pp > pipelines.json\n\nrm strategies.json\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/strategies | json_pp > strategies.json\n\nrm notifications.json\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/notifications | json_pp > notifications.json\n\nrm projects.json\ncurl http://FRONT50_HOSTNAME:FRONT50_PORT/v2/projects | json_pp | jq '._embedded.projects' > projects.json", "language": "shell" } ] } [/block] ## 5. Deploy new Front50 ## 6. Import Applications, Pipelines, Strategies, Notifications and Projects [block:code] { "codes": [ { "code": "#!/bin/sh\n\ncurl -X POST -H \"Content-type: application/json\" --data-binary @\"notifications.json\" http://FRONT50_HOSTNAME:FRONT50_PORT/notifications/batchUpdate\ncurl -X POST -H \"Content-type: application/json\" --data-binary @\"strategies.json\" http://FRONT50_HOSTNAME:FRONT50_PORT/strategies/batchUpdate\ncurl -X POST -H \"Content-type: application/json\" --data-binary @\"pipelines.json\" http://FRONT50_HOSTNAME:FRONT50_PORT/pipelines/batchUpdate\ncurl -X POST -H \"Content-type: application/json\" --data-binary @\"applications.json\" http://FRONT50_HOSTNAME:FRONT50_PORT/global/applications/batchUpdate\ncurl -X POST -H \"Content-type: application/json\" --data-binary @\"projects.json\" http://FRONT50_HOSTNAME:FRONT50_PORT/v2/projects/batchUpdate", "language": "shell" } ] } [/block]