Skip to content

Next

  • Projects
  • Groups
  • Snippets
  • Help
    • Loading...
    • Help
    • Support
    • Submit feedback
    • Contribute to GitLab
  • Sign in / Register
GitLab
GitLab
  • Project overview
    • Project overview
    • Details
    • Activity
    • Releases
    • Cycle Analytics
    • Insights
  • Repository
    • Repository
    • Files
    • Commits
    • Branches
    • Tags
    • Contributors
    • Graph
    • Compare
    • Charts
    • Locked Files
  • Issues 23,589
    • Issues 23,589
    • List
    • Boards
    • Labels
    • Service Desk
    • Milestones
  • Merge Requests 837
    • Merge Requests 837
  • CI / CD
    • CI / CD
    • Pipelines
    • Jobs
    • Schedules
    • Charts
  • Security & Compliance
    • Security & Compliance
    • Dependency List
  • Packages
    • Packages
    • Container Registry
  • Snippets
    • Snippets
  • Members
    • Members
  • Collapse sidebar
  • Activity
  • Graph
  • Charts
  • Create a new issue
  • Jobs
  • Commits
  • Issue Boards
  • GitLab.org
  • GitLabGitLab
  • Issues
  • #29452

Closed
Open
Opened Jun 12, 2019 by Luke Duncalfe@.luke
  • Report abuse
  • New issue
Report abuse New issue

Remove .no_timeout as a timeout option from GitalyClient

Problem to solve

We have a range of timeout values defined in GitalyClient. One of these values is no_timeout. There is an issue with no_timeout, as some calls have been known to hang forever (see https://gitlab.com/gitlab-org/gitlab-ce/issues/53704).

no_timeout currently will become the default timeout for a Gitaly call from a Sidekiq worker if no timeout: argument was passed to Gitaly.call.

Proposal

  • Replace Gitaly.no_timeout with a very high timeout value. All cases of Gitaly.no_timeout in the app should use this new high timeout instead. This new high timeout value will be called slow_timeout

Up for discussion

Note: These were the initial set of questions, however, please read the discussions in this Issue as some answers are being formed there.

  • Should the default timeout for Sidekiq jobs become the same as for non-Sidekiq calls? Or,
  • Should there be a new user-configurable default timeout created for Sidekiq jobs? (a gitaly_timeout_worker_default), or
  • Should the default timeout for Sidekiq jobs become slow_timeout
  • Should slow_timeout be set to 24 hours?

Documentation

To be updated:

  • api/settings docs
  • app/views/admin/application_settings/_gitaly.html.haml
Edited Jul 07, 2019 by Luke Duncalfe

Related issues

  • Discussion
  • Designs
Assignee
Assign to
12.6
Milestone
12.6
Assign milestone
Time tracking
None
Due date
None
10
Labels
Application Limits Deliverable backend backstage devops::create group::source code missed-deliverable missed:12.1 missed:12.1 workflow::ready for development
Assign labels
  • View project labels
Reference: gitlab-org/gitlab#29452