Skip to content
Snippets Groups Projects
Select Git revision
  • v15.0.0-ee
  • v14.10.3-ee
  • v15.0.0-rc44-ee
  • v15.0.0-rc43-ee
  • v15.0.0-rc42-ee
  • v14.10.2-ee
  • v14.8.6-ee
  • v14.9.4-ee
  • v14.10.1-ee
  • v14.10.0-ee
  • v14.10.0-rc42-ee
  • v14.9.3-ee
  • v14.6.7-ee
  • v14.7.7-ee
  • v14.8.5-ee
  • v14.9.2-ee
  • v14.7.6-ee
  • v14.9.1-ee
  • v14.9.0-ee
  • v14.9.0-rc42-ee
20 results
An error occurred while fetching branches. Retry the search.

build.rb

Forked from GitLab.org / GitLab
Source project has a limited visibility.
  • Bob Van Landuyt's avatar
    db378780
    Make Ci::ArchiveTraceWorker use replica for reads · db378780
    Bob Van Landuyt authored
    This sets the data_consistency for the Ci::ArchiveTraceWorker to
    sticky. Allowing the read queries before any write to be handled by a
    replica.
    
    The job is scheduled from the Ci::BuildFinishedWorker with some delay
    built in. Which means this job can take the 0.8s wait in the
    beginning, and is very likely to find a replica that is up to date
    with the WAL locations at the time of scheduling.
    
    To increase the effect of this, this also preloads some associations
    in the worker. That way, we can take advantage of loading them from a
    replica rather than doing it lazily from the primary.
    Make Ci::ArchiveTraceWorker use replica for reads
    Bob Van Landuyt authored
    This sets the data_consistency for the Ci::ArchiveTraceWorker to
    sticky. Allowing the read queries before any write to be handled by a
    replica.
    
    The job is scheduled from the Ci::BuildFinishedWorker with some delay
    built in. Which means this job can take the 0.8s wait in the
    beginning, and is very likely to find a replica that is up to date
    with the WAL locations at the time of scheduling.
    
    To increase the effect of this, this also preloads some associations
    in the worker. That way, we can take advantage of loading them from a
    replica rather than doing it lazily from the primary.