Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
G
gitlab-ce
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
1
Merge Requests
1
Analytics
Analytics
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Commits
Issue Boards
Open sidebar
nexedi
gitlab-ce
Commits
db1d20fe
Commit
db1d20fe
authored
May 26, 2017
by
Stan Hu
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document how to create a migration for the Geo tracking DB
[ci skip]
parent
211679e2
Changes
1
Show whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
19 additions
and
0 deletions
+19
-0
doc/development/geo.md
doc/development/geo.md
+19
-0
No files found.
doc/development/geo.md
View file @
db1d20fe
...
...
@@ -120,3 +120,22 @@ If the data checks out, then the Geo primary sends data via the
[
XSendfile
](
https://www.nginx.com/resources/wiki/start/topics/examples/xsendfile/
)
feature, which allows nginx to handle the file transfer without tying up Rails
or Workhorse.
## Geo Tracking Database
Secondary Geo nodes track data about what has been downloaded in a second
PostgreSQL database that is distinct from the production GitLab database.
The database configuration is set in
`config/database_geo.yml`
.
`db/geo`
contains the schema and migrations for this database.
To write a migration for the database, use the
`GeoMigrationGenerator`
:
```
rails g geo_generator [args] [options]
```
To migrate the tracking database, run:
```
bundle exec rake geo:db:migrate
```
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment