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
e7a66ca5
Commit
e7a66ca5
authored
Jun 05, 2020
by
Valery Sizov
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Document - Geo: Track PackageFile sync counts in Geo node statuses
parent
49909390
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
5 additions
and
2 deletions
+5
-2
doc/development/geo/framework.md
doc/development/geo/framework.md
+5
-2
No files found.
doc/development/geo/framework.md
View file @
e7a66ca5
...
...
@@ -356,7 +356,8 @@ Widgets should now be replicated by Geo!
end
```
1.
Add fields
`widget_count`
,
`widget_checksummed_count`
, and
`widget_checksum_failed_count`
1.
Add fields
`widget_count`
,
`widget_checksummed_count`
,
`widget_checksum_failed_count`
,
`widget_synced_count`
and
`widget_failed_count`
to
`GeoNodeStatus#RESOURCE_STATUS_FIELDS`
array in
`ee/app/models/geo_node_status.rb`
.
1.
Add the same fields to
`GeoNodeStatus#PROMETHEUS_METRICS`
hash in
`ee/app/models/geo_node_status.rb`
.
...
...
@@ -370,6 +371,8 @@ Widgets should now be replicated by Geo!
self
.
widget_count
=
Geo
::
WidgetReplicator
.
model
.
count
self
.
widget_checksummed_count
=
Geo
::
WidgetReplicator
.
checksummed
.
count
self
.
widget_checksum_failed_count
=
Geo
::
WidgetReplicator
.
checksum_failed
.
count
self
.
widget_synced_count
=
Geo
::
WidgetReplicator
.
synced_count
self
.
widget_failed_count
=
Geo
::
WidgetReplicator
.
failed_count
```
1.
Make sure
`Widget`
model has
`checksummed`
and
`checksum_failed`
scopes.
...
...
@@ -450,7 +453,7 @@ Widgets should now be verified by Geo!
end
```
1.
Create
`ee/app/graphql/types/geo/
package_file
_registry_type.rb`
:
1.
Create
`ee/app/graphql/types/geo/
widget
_registry_type.rb`
:
```
ruby
# frozen_string_literal: true
...
...
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