Commit Graph

451 Commits

Author SHA1 Message Date
9fb5bd416d Merge branch 'spelling' into 'master'
doc: Spelling fixes

See merge request gitlab-org/gitlab-ce!16575
2018-01-19 18:44:23 +00:00
0cbbb08e79 doc: Spelling fixes 2018-01-19 12:09:59 +02:00
e82e3c2a55 Fix incorrect path for gitlab-shell authorized keys helper 2018-01-18 21:44:16 -08:00
53d0ee4bcc Add EE version and CE issue link 2018-01-18 10:28:01 -05:00
64683642e8 Add release added and release backported to CE 2018-01-18 09:24:28 -05:00
3b6fb6b867 Recommend against the use of EFS 2018-01-11 11:42:49 -05:00
7e4d640d3e Resolve "Include the Crowd application permission information on the "Crowd OmniAuth Provider" page" 2018-01-10 18:18:39 +00:00
82007530cb Merge branch 'da-verify-integrity-of-uploaded-files' into 'master'
Resolve "Verify integrity of uploaded files"

Closes #39949

See merge request gitlab-org/gitlab-ce!16297
2018-01-10 16:13:27 +00:00
d270693c86 Add docs for ENV variables take gitlab:uploads:check rake task supports 2018-01-09 22:02:44 -02:00
80b8fe24a1 Fix small typos 2018-01-09 18:48:36 -02:00
c73eb55d93 Use the new gitlab-shell authorized-keys helper in documentation 2018-01-09 15:20:38 +00:00
e1008da2a8 Add docs for the gitlab:uploads:check rake task 2018-01-08 19:25:32 -02:00
07bd79cd72 Combine ssh docs and rename the doc
Backport to CE, originally branch 'evn-ssh-clarify-docs

See merge request gitlab-org/gitlab-ee!3753
2018-01-08 20:34:19 +00:00
255a0f85e3 Backport option to disable writing to authorized_keys file
Originally branch 'mk-toggle-writing-to-auth-keys-1631'

See merge request !2004

Squashed commits:
Add authorized_keys_enabled to Application Settings
Ensure default settings are exposed in UI
Without this change, `authorized_keys_enabled` is unchecked when it is nil, even if it should be checked by default.
Add “Speed up SSH operations” documentation
Clarify the reasons for disabling writes
Add "How to go back" section
Tweak copy
Update Application Setting screenshot
2018-01-08 20:34:19 +00:00
0feb2437e1 Update check.md 2018-01-05 10:30:57 +00:00
1392624602 add deprecation and removal issue to docs 2018-01-05 11:16:18 +01:00
de36a8e279 refactor spec, add docs 2018-01-04 11:22:43 +01:00
73eb40d32b Merge branch 'patch-11' into 'master'
doc/plantuml.md: use html tags so code fence example would work

[ci skip]

See merge request gitlab-org/gitlab-ce!16026
2017-12-28 16:34:21 +00:00
e5b5d27dea plantuml.md: use html tags so code fence example would work 2017-12-27 19:30:36 +02:00
26b3a0b34b Docs: move article LDAP-CE to its topic-related folder 2017-12-22 17:15:08 +00:00
d86cd7c3d9 Tidy up the documentation of Gitlab HA/Gitlab Application 2017-12-19 14:53:27 +00:00
c234913e22 Docs: add indexes for monitoring and performance monitoring 2017-12-14 18:24:42 +00:00
391bb43761 Merge branch 'docs-jprovazn-create-from-email' into 'master'
Fixed doc for create MR from email

See merge request gitlab-org/gitlab-ce!15849
2017-12-14 14:51:56 +00:00
4fe92b1de1 Merge branch 'add-tcp-check-rake-task' into 'master'
Add a gitlab:tcp_check rake task

See merge request gitlab-org/gitlab-ce!15759
2017-12-13 17:28:04 +00:00
ab4fa64308 Add a gitlab:tcp_check rake task
This allows us to avoid relying on telnet / netcat being installed
2017-12-13 15:53:32 +00:00
cb2d3aeb92 Docs: Update admin docs 2017-12-13 15:22:02 +00:00
e297c4175d Fixed doc for create MR from email
* fixed anchor for create MR from email
* added a screenshot for this feature
2017-12-12 16:59:40 +01:00
86ae677e5f Merge branch 'docs-add-index-to-operations' into 'master'
Docs: add index for `doc/administration/operations/`

See merge request gitlab-org/gitlab-ce!15852
2017-12-11 18:20:54 +00:00
35090a959d add index for doc/administration/operations/ 2017-12-11 14:05:08 -02:00
d4d06bded1 Keep track of storage check timings 2017-12-11 13:18:39 +01:00
af4d4e7067 Merge branch 'feature/sm/34834-missing-dependency-should-fail-job-2' into 'master'
Dependency validator

Closes #34834

See merge request gitlab-org/gitlab-ce!14009
2017-12-07 19:59:01 +00:00
2ac6d80690 Clean up docs for dependencies validation 2017-12-07 19:46:27 +01:00
de4f2a6e82 Docs: admin index 2017-12-07 15:09:22 +00:00
a7a29b465c add note on deploying Pages to a private network 2017-12-06 15:11:42 -02:00
aaae74c6c3 Updating trouble shooting links 2017-12-01 15:27:56 +00:00
a35d6d3c47 I am certainly weary of debugging sidekiq but I don't think that's what was meant 2017-11-28 18:14:05 +00:00
0185d7800b Merge branch 'hashed-storage-attachments-migration-path' into 'master'
Hashed storage attachments migration path

See merge request gitlab-org/gitlab-ce!15352
2017-11-28 12:46:39 +00:00
10c2ba7dbb Changelog and Documentation for storage migration of project attachments 2017-11-23 14:19:36 +01:00
257fd57134 Allow password authentication to be disabled entirely 2017-11-23 13:16:14 +00:00
3f39d78795 Fix the redirect location wording
Closes https://gitlab.com/gitlab-com/gitlab-docs/issues/142
2017-11-23 12:52:26 +01:00
b001487d94 Document how to troubleshoot internal API calls
[ci skip]

iFoo
2017-11-18 00:06:15 -08:00
555f261d73 Update HA README.md to clarify GitLab support does not troubleshoot DRBD. 2017-11-16 15:49:41 +00:00
9e294180f2 Merge branch 'update-upload-documentation' into 'master'
Added file storage documentation and updated hash storage one

See merge request gitlab-org/gitlab-ce!15269
2017-11-08 16:04:58 +00:00
2db542c519 Added file storage documentation and updated hash storage one 2017-11-08 15:58:10 +01:00
4dfe26cd8b Rewrite the GitHub importer from scratch
Prior to this MR there were two GitHub related importers:

* Github::Import: the main importer used for GitHub projects
* Gitlab::GithubImport: importer that's somewhat confusingly used for
  importing Gitea projects (apparently they have a compatible API)

This MR renames the Gitea importer to Gitlab::LegacyGithubImport and
introduces a new GitHub importer in the Gitlab::GithubImport namespace.
This new GitHub importer uses Sidekiq for importing multiple resources
in parallel, though it also has the ability to import data sequentially
should this be necessary.

The new code is spread across the following directories:

* lib/gitlab/github_import: this directory contains most of the importer
  code such as the classes used for importing resources.
* app/workers/gitlab/github_import: this directory contains the Sidekiq
  workers, most of which simply use the code from the directory above.
* app/workers/concerns/gitlab/github_import: this directory provides a
  few modules that are included in every GitHub importer worker.

== Stages

The import work is divided into separate stages, with each stage
importing a specific set of data. Stages will schedule the work that
needs to be performed, followed by scheduling a job for the
"AdvanceStageWorker" worker. This worker will periodically check if all
work is completed and schedule the next stage if this is the case. If
work is not yet completed this worker will reschedule itself.

Using this approach we don't have to block threads by calling `sleep()`,
as doing so for large projects could block the thread from doing any
work for many hours.

== Retrying Work

Workers will reschedule themselves whenever necessary. For example,
hitting the GitHub API's rate limit will result in jobs rescheduling
themselves. These jobs are not processed until the rate limit has been
reset.

== User Lookups

Part of the importing process involves looking up user details in the
GitHub API so we can map them to GitLab users. The old importer used
an in-memory cache, but this obviously doesn't work when the work is
spread across different threads.

The new importer uses a Redis cache and makes sure we only perform
API/database calls if absolutely necessary.  Frequently used keys are
refreshed, and lookup misses are also cached; removing the need for
performing API/database calls if we know we don't have the data we're
looking for.

== Performance & Models

The new importer in various places uses raw INSERT statements (as
generated by `Gitlab::Database.bulk_insert`) instead of using Rails
models. This allows us to bypass any validations and callbacks,
drastically reducing the number of SQL queries and Gitaly RPC calls
necessary to import projects.

To ensure the code produces valid data the corresponding tests check if
the produced rows are valid according to the model validation rules.
2017-11-07 23:24:59 +01:00
1400ffae1b Add reconfigure docs to CE 2017-11-06 17:49:54 +02:00
62ab17798d Merge branch 'dm-sidekiq-sigstp' into 'master'
Send SIGSTP before SIGTERM to actually give Sidekiq jobs 30s to finish when the memory killer kicks in

See merge request gitlab-org/gitlab-ce!15102
2017-11-02 15:33:53 +00:00
ccb5bad6b8 Send SIGSTP before SIGTERM to actually give Sidekiq jobs 30s to finish when the memory killer kicks in 2017-11-02 15:33:19 +01:00
4b93429a4e Remove Private Token from User Settings > Account 2017-11-02 11:39:01 +01:00
1401ec2186 Merge branch 'patch-29' into 'master'
Fix typo

See merge request gitlab-org/gitlab-ce!15136
2017-11-01 17:51:50 +00:00