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
0
Merge Requests
0
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
Léo-Paul Géneau
gitlab-ce
Commits
211e78d5
Commit
211e78d5
authored
Oct 17, 2017
by
Zeger-Jan van de Weg
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Update documentation
parent
61f4d08b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
3 additions
and
15 deletions
+3
-15
doc/development/gitaly.md
doc/development/gitaly.md
+3
-15
No files found.
doc/development/gitaly.md
View file @
211e78d5
...
...
@@ -85,24 +85,12 @@ Commits and other git data, is now fetched through Gitaly. These fetches can,
much like with a database, be batched. This improves performance for the client
and for Gitaly itself and therefore for the users too. To keep performance stable
and guard performance regressions, Gitaly calls can be counted and the call count
can be tested against
:
can be tested against
. This requires the
`:request_store`
flag to be set.
```
ruby
describe
'Gitaly Request count tests'
do
context
'when the request store is activated'
,
:request_store
do
it
'correctly counts the gitaly requests made'
do
count
=
gitaly_request_count
{
subject
}
expect
{
subject
}.
to
change
{
Gitlab
::
GitalyClient
.
get_request_count
}.
by
(
10
)
end
end
context
'when the request store is disabled'
do
it
'is always zero'
do
subject
expect
(
Gitlab
::
GitalyClient
.
get_request_count
).
to
be_zero
end
it
'correctly counts the gitaly requests made'
do
expect
{
subject
}.
to
change
{
Gitlab
::
GitalyClient
.
get_request_count
}.
by
(
10
)
end
end
```
...
...
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