Skip to content

Commit

Permalink
Fix upgrade doc
Browse files Browse the repository at this point in the history
  • Loading branch information
Victor Castell committed Jul 4, 2019
1 parent a018f9e commit fcc2878
Showing 1 changed file with 6 additions and 6 deletions.
12 changes: 6 additions & 6 deletions website/content/upgrading/from_v1_to_v2.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,15 @@ Dkron v2 brings lots of changes to the previous version. To successfully upgrade

## Migrating Jobs

To migrate jobs from v1 to v2 they should be exported from the v1 cluster and imported into v2.
To migrate jobs from v1 to v2, export jobs from the v1 cluster and import them into v2.

A basic script to do that can be found [here](https://gist.github.com/pjz/94f4bd81a0897fd64db44593078e2156)

You can take the chance to change your job tags as explained in the following section.
You can take the opportunity to change your job tags as explained in the following section.

## Changing tags and metadata

Tags behaves different in dkron 2. There is several dkron tags that changes its name and becomes reserved, the reserved tags are:
Tags behave different in dkron 2. There are several dkron tags that changed names and have become reserved. The reserved tags are:

- dc
- region
Expand All @@ -26,10 +26,10 @@ Tags behaves different in dkron 2. There is several dkron tags that changes its
- rpc_addr
- port

You can not set this tags with the `tags` param but tags `dc` and `region` could be set by `region` and `datacenter` params.
You can not set these tags with the `tags` param. Tags `region` and `dc` can be set using the `region` and `datacenter` params, respectively.

Dkron 2 change the job filtering API param from `tags` to `metadata`. Jobs have a new param `metadata` you could use to set any data to classificate jobs and then use the API call to filter results.
In Dkron 2, the job filtering API now filters on the `metadata` instead of the `tags` field. Jobs have a new param `metadata` that can be used to set any data to classify jobs. These can then be used to filter results returned by the API.

## Selecting storage dir and backup strategies

Dkron 2 implements a new param `data-dir` where the working data directory can be specified. This directory stores all working data of dkron and it should be backed up and handled with special attention.
Dkron 2 implements a new param `data-dir`, which specifies the working data directory. This directory stores all working data, and it should be backed up and handled with special care.

0 comments on commit fcc2878

Please sign in to comment.