[{"data":1,"prerenderedAt":1976},["ShallowReactive",2],{"/blog/how-to-configure-sidekiq-for-gitlab-at-scale":3,"navigation-en-us":1188,"banner-en-us":1616,"footer-en-us":1626,"blog-post-authors-en-us-Craig Miskell":1871,"blog-related-posts-en-us-how-to-configure-sidekiq-for-gitlab-at-scale":1886,"blog-promotions-en-us":1912,"next-steps-en-us":1966},{"id":4,"title":5,"authors":6,"body":8,"category":1170,"date":1171,"description":1172,"extension":1173,"externalUrl":1174,"faq":1174,"featured":1175,"heroImage":1176,"meta":1177,"navigation":1178,"path":1179,"seo":1180,"slug":1184,"stem":1185,"tags":1174,"template":1186,"updatedDate":1174,"__hash__":1187},"blogPosts/en-us/blog/how-to-configure-sidekiq-for-gitlab-at-scale.md","How to configure Sidekiq for specialized or large-scale GitLab instances",[7],"Craig Miskell",{"type":9,"value":10,"toc":1161},"minimark",[11,15,20,28,38,52,57,60,70,73,77,85,94,117,134,137,154,175,179,193,196,199,207,210,218,225,243,250,255,270,277,344,357,415,418,468,479,482,497,508,526,532,549,608,611,657,664,698,709,713,721,772,775,808,816,830,844,896,905,970,973,995,1005,1051,1058,1062,1081,1084,1097,1103,1107,1110,1134,1137,1141,1144,1157],[12,13,14],"p",{},"Configuring Sidekiq in your own deployment of GitLab is a little complicated, but entirely possible. In this blog post, we share how to set up Sidekiq for GitLab in special cases and at a large scale by sharing some exmaples that may be useful to you.",[16,17,19],"h2",{"id":18},"why-consider-special-configuration","Why consider special configuration?",[12,21,22,23,27],{},"While Sidekiq (both in general, and in a GitLab deployment) will usually ",[24,25,26],"em",{},"just work"," most of the time, there can be some sharp edges and limits. Raw scale is a clear and obvious driver for needing to take action, and although it may be fine to simply scale out multiple Sidekiq nodes each listening to all the queues, at some point:",[29,30,31,35],"ol",{},[32,33,34],"li",{},"The uniqueness of workload distribution and job characteristics may require dedicated workers, either sharded on job attributes (as for GitLab.com), or specific workers (based on your workloads), or",[32,36,37],{},"Simple saturation on Redis means you need to listen to fewer queues",[12,39,40],{},[41,42,43],"strong",{},[44,45,46,47],"span",{},"We share ",[48,49,51],"a",{"href":50},"/blog/specialized-sidekiq-configuration-lessons-from-gitlab-dot-com/","all we learned about configuring Sidekiq on GitLab.com",[53,54,56],"h3",{"id":55},"example-demo-systems","Example: Demo systems",[12,58,59],{},"In early 2021, our Demo Systems team were running a GitLab deployment for training purposes. Many users would join a training session where the first task was to import a sample project into the provided GitLab instance to work on further during the class. Imports are implemented with a Sidekiq job because they can take anything from a few seconds to hours. What the Demo Systems team found was that the default Sidekiq configuration simply couldn't keep up. The deployment wasn't huge, and neither was the user count, it was the very specific usage of the system that ran into difficulties. So, the team split off a dedicated Sidekiq VM for running imports, with suitably tuned concurrency (based on CPU contention), CPU + memory, and number of workers.",[12,61,62],{},[41,63,64,65,69],{},"[",[48,66,68],{"href":67},"/blog/scaling-our-use-of-sidekiq/","Discover how we scaled our use of Sidekiq on a GitLab instance","]",[12,71,72],{},"The key lesson here is that large scale isn't always the driver for customizing Sidekiq configuration, and the reason may be specific to your workloads, which means first you have to be able to identify the pain points.",[53,74,76],{"id":75},"using-metrics-to-identify-problems","Using metrics to identify problems",[12,78,79,80,84],{},"User experience may tell you something isn't going well, but how do you tell where the actual problem lies? The GitLab UI exposes the Sidekiq UI to administrators, at ",[81,82,83],"code",{},"/admin/background_jobs"," – in the 'Queues' tab, you can see how many jobs are currently pending, and a breakdown by queue. However, that is a snapshot of a point-in-time, and stored metrics/graphs are better for long term visibility, particularly for figuring out what happened an hour ago when someone reported slow pipelines, or to debug that thing that happens twice a day but never when anyone is watching.",[12,86,87,88,93],{},"To get some visibility, consider installing ",[48,89,92],{"href":90,"rel":91},"https://gitlab.com/gitlab-org/gitlab-exporter/",[],"gitlab-exporter"," on (or pointed to) your Redis nodes, with:",[95,96,97,107],"ul",{},[32,98,99,102,103,106],{},[81,100,101],{},"probe_queues"," enabled to get the ",[81,104,105],{},"sidekiq_queue_size"," metric, and/or",[32,108,109,112,113,116],{},[81,110,111],{},"probe_jobs_limit"," to get ",[81,114,115],{},"sidekiq_enqueued_jobs",".",[12,118,119,121,122,124,125,130,131,133],{},[81,120,105],{}," reports the length of the all the Sidekiq queues in Redis (equivalent to the data exposed by the Sidekiq UI), but now it's exposed as a Prometheus metric for scraping and graphing. ",[81,123,115],{}," deserializes the job descriptions as well, meaning it can look inside a routing rule-based named queue with more than one class of jobs in it, and report the distribution of work by class. It has to limit (hence the name) the inspection to the first 1000 jobs in any given queue to contain the potential impact of blocking Redis with many calls to ",[48,126,129],{"href":127,"rel":128},"https://redis.io/commands/lrange",[],"LRANGE"," with large responses. Usually this situation is fine. If you have > 1000 jobs in any given queue for a non-trivial amount of time, just knowing what's at the head of the queue is likely sufficient and ",[81,132,105],{}," will still show you the full magnitude of the backlog.",[12,135,136],{},"If we were to really simplify it - because there are always exceptions - both those metrics should be at or close to 0 most of the time. In practice, there's often small, brief spikes when batches of work land and cannot be processed immediately, and it may be quite acceptable for some large/slow jobs to be queued for some significant time (e.g., project exports). But a prolonged backlog (or perpetual growth) indicates some class of work is not being processed, either at all, or \"fast enough\" to keep up. If your team is encountering these problems, it might be time to customize your Sidekiq configuration.",[12,138,139,140,143,144,149,150,153],{},"However the backlog in queues may not be the whole story – queuing might be occurring because all your Sidekiq workers are busy with long-running jobs, causing all the other jobs to stall. To observe that you need the ",[81,141,142],{},"sidekiq_running_jobs"," metric, which can be scraped from the ",[48,145,148],{"href":146,"rel":147},"https://docs.gitlab.com/administration/monitoring/prometheus/gitlab_metrics/#sidekiq-metrics",[],"sidekiq exporter",". This is enabled by default on port 8082 for Omnibus, and 3807 in Kubernetes when using our helmcharts. Graphing ",[81,151,152],{},"sum by (worker) (sidekiq_running_jobs)"," will show you what your Sidekiq workers are actively up to right now, and may highlight which worker/queue is causing the problem.",[12,155,156,157,162,163,166,167,170,171,174],{},"Consider also keeping an eye on your Redis CPU usage – on a modern CPU at smaller scales there's a lot of headroom, but if you're at the point of considering a specialized Sidekiq configuration, now is the time to add a little monitoring and alerting so it doesn't sneak up on you in the future. We use ",[48,158,161],{"href":159,"rel":160},"https://github.com/ncabatoff/process-exporter",[],"Process Exporter"," inspecting the ",[81,164,165],{},"redis-server"," process, with ",[81,168,169],{},"threads=true"," (on the command line) to get per-thread details. In Prometheus we use ",[81,172,173],{},"sum by (threadname) (rate(namedprocess_namegroup_thread_cpu_seconds_total[1m]))",". On Redis 6, the core thread is named 'redis-server'. As always, set your alert level so that you won't get false positives, but will have plenty of headway before saturation becomes a real problem.",[53,176,178],{"id":177},"how-to-customize-your-sidekiq-configuration","How to customize your Sidekiq configuration",[12,180,181,182,187,188,192],{},"After identifying one or more queues/workers that are backed up, the main task is to get more Sidekiq processing power deployed. As mentioned above, it may be sufficient to simply add one or more ",[48,183,186],{"href":184,"rel":185},"https://docs.gitlab.com/administration/sidekiq/",[],"Sidekiq nodes"," or Sidekiq workload in Kubernetes, allowing you to listen to all the queues in a default configuration. If you choose this approach, make sure you're keeping an eye on Redis CPU per the ",[48,189,191],{"href":190},"#using-metrics-to-identify-problems","metrics"," above.",[12,194,195],{},"An alternative is to choose to provision some dedicated Sidekiq processing for just the problem work. It could even be said that any complex configuration of Sidekiq for GitLab is just the result of a series of these decisions, progressively adding dedicated processing for specific workloads with a \"catchall\" or \"default\" workload picking up the rest, so I'll describe just one such step and you can take it as far as you need.",[12,197,198],{},"There is a critical decision to make first, and that's whether to:",[29,200,201,204],{},[32,202,203],{},"use queue-selectors on the workers and continue with a queue per worker for all jobs, or",[32,205,206],{},"use routing rules.",[12,208,209],{},"And if using routing rules, decide whether to:",[29,211,212,215],{},[32,213,214],{},"Go entirely to one-queue-per-shard, or",[32,216,217],{},"Use a mix of custom-named queues and the default worker-named queues.",[12,219,220,221,224],{},"Having worked in this area for a little over a year now, ",[41,222,223],{},"I strongly recommend using routing rules and one-queue-per-shard"," for the following reasons:",[29,226,227,230,233,240],{},[32,228,229],{},"Routing rules are more obvious in their effect/ordering than trying to configure disjointed sets of queues across Sidekiq workloads,",[32,231,232],{},"Correlating the target queue names in routing rules with the names of queues listened to by workers is simpler,",[32,234,235,236,239],{},"There is ",[24,237,238],{},"far"," less complexity in configuring the default/catchall workers,",[32,241,242],{},"Load on Redis is significantly reduced with fewer named queues.",[12,244,245,246,249],{},"It may be easier to see why with an example. In the next section, we run through an example where we assume that you want to provide dedicated resources for ",[81,247,248],{},"project_exports"," because it sees heavy use, and Sidekiq is regularly spending all it's time on that. We'll skip the early phase and assume that you have identified from metrics that the queue name is project_export.",[251,252,254],"h4",{"id":253},"using-queue-selectors-only","Using queue-selectors only",[12,256,257,258,263,264,269],{},"Let's say you want to continue to use one queue per worker and configure each Sidekiq workload to listen to a subset of jobs using queue selectors. The syntax and location for configuring queue selectors is available in our documentation under ",[48,259,262],{"href":260,"rel":261},"https://docs.gitlab.com/administration/sidekiq/extra_sidekiq_processes/",[],"Queue selector"," and ",[48,265,268],{"href":266,"rel":267},"https://docs.gitlab.com/administration/sidekiq/processing_specific_job_classes/",[],"Worker matcher query"," sections.",[12,271,272,273,276],{},"After creating your new, dedicated Sidekiq workload, configure this in ",[81,274,275],{},"gitlab.rb"," on that workload:",[278,279,284],"pre",{"className":280,"code":281,"language":282,"meta":283,"style":283},"language-ruby shiki shiki-themes github-light","sidekiq['enable'] = true\nsidekiq['queue_selector'] = true\nsidekiq['queue_groups'] = [ 'name=project_export' ]\n","ruby","",[81,285,286,309,323],{"__ignoreMap":283},[44,287,290,294,298,301,305],{"class":288,"line":289},"line",1,[44,291,293],{"class":292},"sgsFI","sidekiq[",[44,295,297],{"class":296},"sYBdl","'enable'",[44,299,300],{"class":292},"] ",[44,302,304],{"class":303},"sD7c4","=",[44,306,308],{"class":307},"sYu0t"," true\n",[44,310,312,314,317,319,321],{"class":288,"line":311},2,[44,313,293],{"class":292},[44,315,316],{"class":296},"'queue_selector'",[44,318,300],{"class":292},[44,320,304],{"class":303},[44,322,308],{"class":307},[44,324,326,328,331,333,335,338,341],{"class":288,"line":325},3,[44,327,293],{"class":292},[44,329,330],{"class":296},"'queue_groups'",[44,332,300],{"class":292},[44,334,304],{"class":303},[44,336,337],{"class":292}," [ ",[44,339,340],{"class":296},"'name=project_export'",[44,342,343],{"class":292}," ]\n",[12,345,346,347,263,351,356],{},"Keep in mind that this will only run one Sidekiq process which, while multithreaded with one job potentially executing on each thread, can only use one CPU – read up on ",[48,348,350],{"href":260,"rel":349},[],"multiple processes",[48,352,355],{"href":353,"rel":354},"https://about.gitlab.com/blog/specialized-sidekiq-configuration-lessons-from-gitlab-dot-com/",[],"concurrency threading"," for a little more detail, but in short, if you had a 4 CPU VM and you wanted to run 4 project_export processes, you'd configure gitlab.rb like this:",[278,358,360],{"className":280,"code":359,"language":282,"meta":283,"style":283},"sidekiq['enable'] = true\nsidekiq['queue_selector'] = true\nsidekiq['queue_groups'] = [ 'name=project_export', 'name=project_export', 'name=project_export', 'name=project_export' ]\n",[81,361,362,374,386],{"__ignoreMap":283},[44,363,364,366,368,370,372],{"class":288,"line":289},[44,365,293],{"class":292},[44,367,297],{"class":296},[44,369,300],{"class":292},[44,371,304],{"class":303},[44,373,308],{"class":307},[44,375,376,378,380,382,384],{"class":288,"line":311},[44,377,293],{"class":292},[44,379,316],{"class":296},[44,381,300],{"class":292},[44,383,304],{"class":303},[44,385,308],{"class":307},[44,387,388,390,392,394,396,398,400,403,405,407,409,411,413],{"class":288,"line":325},[44,389,293],{"class":292},[44,391,330],{"class":296},[44,393,300],{"class":292},[44,395,304],{"class":303},[44,397,337],{"class":292},[44,399,340],{"class":296},[44,401,402],{"class":292},", ",[44,404,340],{"class":296},[44,406,402],{"class":292},[44,408,340],{"class":296},[44,410,402],{"class":292},[44,412,340],{"class":296},[44,414,343],{"class":292},[12,416,417],{},"This also reveals another approach. If your existing workload is running somewhere with spare CPU you could add processes with different sets of queues, gaining some control of workload prioritization without having to deploy new compute resources. For example:",[278,419,421],{"className":280,"code":420,"language":282,"meta":283,"style":283},"sidekiq['enable'] = true\nsidekiq['queue_selector'] = true\nsidekiq['queue_groups'] = [ 'name=project_export', 'name!=project_export' ]\n",[81,422,423,435,447],{"__ignoreMap":283},[44,424,425,427,429,431,433],{"class":288,"line":289},[44,426,293],{"class":292},[44,428,297],{"class":296},[44,430,300],{"class":292},[44,432,304],{"class":303},[44,434,308],{"class":307},[44,436,437,439,441,443,445],{"class":288,"line":311},[44,438,293],{"class":292},[44,440,316],{"class":296},[44,442,300],{"class":292},[44,444,304],{"class":303},[44,446,308],{"class":307},[44,448,449,451,453,455,457,459,461,463,466],{"class":288,"line":325},[44,450,293],{"class":292},[44,452,330],{"class":296},[44,454,300],{"class":292},[44,456,304],{"class":303},[44,458,337],{"class":292},[44,460,340],{"class":296},[44,462,402],{"class":292},[44,464,465],{"class":296},"'name!=project_export'",[44,467,343],{"class":292},[12,469,470,471,474,475,478],{},"This may look a little odd at first glance, but it means that one process will be listening to ",[81,472,473],{},"project_export",", and the other will be listening to every queue that ",[24,476,477],{},"isn't"," project_export.",[12,480,481],{},"A couple of caveats:",[29,483,484,494],{},[32,485,486,487,489,490,493],{},"Concurrency (threading) is set once in ",[81,488,275],{},", so all jobs running on that node will need to be compatible with that concurrency. Read up on ",[48,491,492],{"href":50},"Concurrency (threading) in the previous blog post"," to learn more.",[32,495,496],{},"Using the GitLab helmcharts, each pod only runs one process, so there you'd adjust maxReplicas instead.",[12,498,499,500,507],{},"Speaking of helmcharts, these have the queue-selector configured with the ",[48,501,504],{"href":502,"rel":503},"https://docs.gitlab.com/charts/charts/gitlab/sidekiq/#queues",[],[81,505,506],{},"queues"," attribute of the pod:",[278,509,513],{"className":510,"code":511,"language":512,"meta":283,"style":283},"language-yaml shiki shiki-themes github-light","queues: name=project_export\n","yaml",[81,514,515],{"__ignoreMap":283},[44,516,517,520,523],{"class":288,"line":289},[44,518,506],{"class":519},"shJU0",[44,521,522],{"class":292},": ",[44,524,525],{"class":296},"name=project_export\n",[12,527,528,529,531],{},"Where, despite being named ",[81,530,506],{},", it can take the full queue-selector expression.",[12,533,534,535,537,538,540,541,544,545,548],{},"After these configurations, your new workload will be listening exclusively to the ",[81,536,473],{}," queue/worker. But what is to stop your original workload from also running ",[81,539,473],{},"? Absolutely nothing! A default/baseline workload of Sidekiq for GitLab will listen on all the queues. This ",[41,542,543],{},"may"," be acceptable in a simple case – you've provided additional capacity dedicated to the named queue, and occasionally those jobs will still run on the original Sidekiq. In practice, because of the way Sidekiq uses BRPOP with a randomized order of queues, and how Redis distributes work when clients are already waiting on a named queue, the new dedicated workload will most likely pick up the ",[41,546,547],{},"vast"," majority of the work on that queue. But this may not isolate problem work as much as you desire. This could also lead to difficulty in reasoning clearly about what the system is going to do as your customization grows and becomes more specific. Therefore, I strongly recommend that you ensure the sets of queues are disjoint (that is, no overlap). The final step is to configure your original/default Sidekiq with either:",[278,550,552],{"className":280,"code":551,"language":282,"meta":283,"style":283},"sidekiq['enable'] = true\nsidekiq['negate'] = true\nsidekiq['queue_selector'] = true\nsidekiq['queue_groups'] = [ 'name=project_export' ]\n",[81,553,554,566,579,591],{"__ignoreMap":283},[44,555,556,558,560,562,564],{"class":288,"line":289},[44,557,293],{"class":292},[44,559,297],{"class":296},[44,561,300],{"class":292},[44,563,304],{"class":303},[44,565,308],{"class":307},[44,567,568,570,573,575,577],{"class":288,"line":311},[44,569,293],{"class":292},[44,571,572],{"class":296},"'negate'",[44,574,300],{"class":292},[44,576,304],{"class":303},[44,578,308],{"class":307},[44,580,581,583,585,587,589],{"class":288,"line":325},[44,582,293],{"class":292},[44,584,316],{"class":296},[44,586,300],{"class":292},[44,588,304],{"class":303},[44,590,308],{"class":307},[44,592,594,596,598,600,602,604,606],{"class":288,"line":593},4,[44,595,293],{"class":292},[44,597,330],{"class":296},[44,599,300],{"class":292},[44,601,304],{"class":303},[44,603,337],{"class":292},[44,605,340],{"class":296},[44,607,343],{"class":292},[12,609,610],{},"or",[278,612,614],{"className":280,"code":613,"language":282,"meta":283,"style":283},"sidekiq['enable'] = true\nsidekiq['queue_selector'] = true\nsidekiq['queue_groups'] = [ \"name!=project_export\" ]\n",[81,615,616,628,640],{"__ignoreMap":283},[44,617,618,620,622,624,626],{"class":288,"line":289},[44,619,293],{"class":292},[44,621,297],{"class":296},[44,623,300],{"class":292},[44,625,304],{"class":303},[44,627,308],{"class":307},[44,629,630,632,634,636,638],{"class":288,"line":311},[44,631,293],{"class":292},[44,633,316],{"class":296},[44,635,300],{"class":292},[44,637,304],{"class":303},[44,639,308],{"class":307},[44,641,642,644,646,648,650,652,655],{"class":288,"line":325},[44,643,293],{"class":292},[44,645,330],{"class":296},[44,647,300],{"class":292},[44,649,304],{"class":303},[44,651,337],{"class":292},[44,653,654],{"class":296},"\"name!=project_export\"",[44,656,343],{"class":292},[12,658,659,660,663],{},"Then, as you add more customized workloads in future steps, you would extend the expression to exclude the work that is being picked up elsewhere, e.g., in the negate case if you had added a further workload executing only ",[81,661,662],{},"feature_category=importers",":",[278,665,667],{"className":280,"code":666,"language":282,"meta":283,"style":283},"sidekiq['negate'] = true\nsidekiq['queue_groups'] = [ 'name=project_export&feature_category=importers' ]\n",[81,668,669,681],{"__ignoreMap":283},[44,670,671,673,675,677,679],{"class":288,"line":289},[44,672,293],{"class":292},[44,674,572],{"class":296},[44,676,300],{"class":292},[44,678,304],{"class":303},[44,680,308],{"class":307},[44,682,683,685,687,689,691,693,696],{"class":288,"line":311},[44,684,293],{"class":292},[44,686,330],{"class":296},[44,688,300],{"class":292},[44,690,304],{"class":303},[44,692,337],{"class":292},[44,694,695],{"class":296},"'name=project_export&feature_category=importers'",[44,697,343],{"class":292},[12,699,700,701,704,705,708],{},"This is where setting ",[81,702,703],{},"negate"," to \"true\" can be better – this catchall/default expression can be a simple concatenation of the expressions used on every other workload, separated with ",[81,706,707],{},"&",". The expression may end up complex, but it can be generated trivially with code. Not using negate and inverting the operators works for simple cases, but may run into difficulty expressing edge cases when the individual expressions become more nuanced or complicated.",[251,710,712],{"id":711},"use-routing-rules","Use routing rules",[12,714,715,716,720],{},"Another option is to use ",[48,717,719],{"href":266,"rel":718},[],"routing rules"," to achieve the same thing. First, add a new Sidekiq workload configured with:",[278,722,724],{"className":280,"code":723,"language":282,"meta":283,"style":283},"sidekiq['enable'] = true\nsidekiq['queue_selector'] = false # This is the default and is included only to be explicit\nsidekiq['queue_groups'] = [ 'export' ]\n",[81,725,726,738,755],{"__ignoreMap":283},[44,727,728,730,732,734,736],{"class":288,"line":289},[44,729,293],{"class":292},[44,731,297],{"class":296},[44,733,300],{"class":292},[44,735,304],{"class":303},[44,737,308],{"class":307},[44,739,740,742,744,746,748,751],{"class":288,"line":311},[44,741,293],{"class":292},[44,743,316],{"class":296},[44,745,300],{"class":292},[44,747,304],{"class":303},[44,749,750],{"class":307}," false",[44,752,754],{"class":753},"sAwPA"," # This is the default and is included only to be explicit\n",[44,756,757,759,761,763,765,767,770],{"class":288,"line":325},[44,758,293],{"class":292},[44,760,330],{"class":296},[44,762,300],{"class":292},[44,764,304],{"class":303},[44,766,337],{"class":292},[44,768,769],{"class":296},"'export'",[44,771,343],{"class":292},[12,773,774],{},"As in the queue-selector approach, you can run more than one by repeating the expression in queue_groups:",[278,776,778],{"className":280,"code":777,"language":282,"meta":283,"style":283},"sidekiq['queue_groups'] = [ 'export', 'export', 'export', 'export' ]\n",[81,779,780],{"__ignoreMap":283},[44,781,782,784,786,788,790,792,794,796,798,800,802,804,806],{"class":288,"line":289},[44,783,293],{"class":292},[44,785,330],{"class":296},[44,787,300],{"class":292},[44,789,304],{"class":303},[44,791,337],{"class":292},[44,793,769],{"class":296},[44,795,402],{"class":292},[44,797,769],{"class":296},[44,799,402],{"class":292},[44,801,769],{"class":296},[44,803,402],{"class":292},[44,805,769],{"class":296},[44,807,343],{"class":292},[12,809,810,811,815],{},"When using ",[48,812,814],{"href":502,"rel":813},[],"helm charts"," it would be simply the following in the Sidekiq pod definition:",[278,817,819],{"className":510,"code":818,"language":512,"meta":283,"style":283},"queues: name=export\n",[81,820,821],{"__ignoreMap":283},[44,822,823,825,827],{"class":288,"line":289},[44,824,506],{"class":519},[44,826,522],{"class":292},[44,828,829],{"class":296},"name=export\n",[12,831,832,833,835,836,839,840,843],{},"This is simply explicitly naming queues, but having made up an arbitrary named \"export\" rather than using a queue name derived from the job class. Next, and most importantly, add the following to ",[81,834,275],{}," on ",[41,837,838],{},"all"," your workloads. In the queue-selector approach, we only had to configure the Sidekiq workload, but here we need to ensure that ",[41,841,842],{},"everywhere that enqueues Sidekiq jobs has the routing rules"," – meaning anywhere running the Rails portion of GitLab, i.e., puma (web) as well as Sidekiq:",[278,845,847],{"className":280,"code":846,"language":282,"meta":283,"style":283},"sidekiq['routing_rules'] = [\n  ['name=project_export', 'export'],\n  ['*', nil]\n]\n",[81,848,849,863,877,892],{"__ignoreMap":283},[44,850,851,853,856,858,860],{"class":288,"line":289},[44,852,293],{"class":292},[44,854,855],{"class":296},"'routing_rules'",[44,857,300],{"class":292},[44,859,304],{"class":303},[44,861,862],{"class":292}," [\n",[44,864,865,868,870,872,874],{"class":288,"line":311},[44,866,867],{"class":292},"  [",[44,869,340],{"class":296},[44,871,402],{"class":292},[44,873,769],{"class":296},[44,875,876],{"class":292},"],\n",[44,878,879,881,884,886,889],{"class":288,"line":325},[44,880,867],{"class":292},[44,882,883],{"class":296},"'*'",[44,885,402],{"class":292},[44,887,888],{"class":307},"nil",[44,890,891],{"class":292},"]\n",[44,893,894],{"class":288,"line":593},[44,895,891],{"class":292},[12,897,898,899,904],{},"And when using ",[48,900,903],{"href":901,"rel":902},"https://docs.gitlab.com/charts/charts/globals/#sidekiq-routing-rules-settings",[],"helmcharts"," deployment:",[278,906,908],{"className":510,"code":907,"language":512,"meta":283,"style":283},"global:\n  appConfig:\n    sidekiq:\n      routingRules:\n      - [\"name=project_export\", \"export\"]\n      - [\"*\", null]\n\n",[81,909,910,918,925,932,939,955],{"__ignoreMap":283},[44,911,912,915],{"class":288,"line":289},[44,913,914],{"class":519},"global",[44,916,917],{"class":292},":\n",[44,919,920,923],{"class":288,"line":311},[44,921,922],{"class":519},"  appConfig",[44,924,917],{"class":292},[44,926,927,930],{"class":288,"line":325},[44,928,929],{"class":519},"    sidekiq",[44,931,917],{"class":292},[44,933,934,937],{"class":288,"line":593},[44,935,936],{"class":519},"      routingRules",[44,938,917],{"class":292},[44,940,942,945,948,950,953],{"class":288,"line":941},5,[44,943,944],{"class":292},"      - [",[44,946,947],{"class":296},"\"name=project_export\"",[44,949,402],{"class":292},[44,951,952],{"class":296},"\"export\"",[44,954,891],{"class":292},[44,956,958,960,963,965,968],{"class":288,"line":957},6,[44,959,944],{"class":292},[44,961,962],{"class":296},"\"*\"",[44,964,402],{"class":292},[44,966,967],{"class":307},"null",[44,969,891],{"class":292},[12,971,972],{},"Some caveats:",[29,974,975,982,989],{},[32,976,977,978,981],{},"You most likely want a workload listening to the new queue ",[41,979,980],{},"before"," reconfiguring the routing rules, otherwise jobs will be put into the queue with nothing ready to execute them.",[32,983,984,985,988],{},"The destination name (",[81,986,987],{},"export",") is arbitrary, but must match exactly in Sidekiq queue configuration and the routing rules.",[32,990,991,992,994],{},"In ",[81,993,275],{}," we use \"nil\", but in YAML we must use \"null\".",[12,996,997,998,1001,1002,1004],{},"By using null/nil as the target for ",[81,999,1000],{},"*"," this example continues to use the default worker-per-queue strategy for all the other jobs. So you will have gained routing/prioritization control, but Redis will still be doing a lot of work to listen to the other 440+ queues. To avoid that, you can change the target of the final ",[81,1003,1000],{}," routing rule to \"default\", e.g.",[278,1006,1008],{"className":280,"code":1007,"language":282,"meta":283,"style":283},"sidekiq['routing_rules'] = [\n  ['name=project_export', 'export'],\n  ['*', 'default']\n]\n",[81,1009,1010,1022,1034,1047],{"__ignoreMap":283},[44,1011,1012,1014,1016,1018,1020],{"class":288,"line":289},[44,1013,293],{"class":292},[44,1015,855],{"class":296},[44,1017,300],{"class":292},[44,1019,304],{"class":303},[44,1021,862],{"class":292},[44,1023,1024,1026,1028,1030,1032],{"class":288,"line":311},[44,1025,867],{"class":292},[44,1027,340],{"class":296},[44,1029,402],{"class":292},[44,1031,769],{"class":296},[44,1033,876],{"class":292},[44,1035,1036,1038,1040,1042,1045],{"class":288,"line":325},[44,1037,867],{"class":292},[44,1039,883],{"class":296},[44,1041,402],{"class":292},[44,1043,1044],{"class":296},"'default'",[44,1046,891],{"class":292},[44,1048,1049],{"class":288,"line":593},[44,1050,891],{"class":292},[12,1052,1053,1054,1057],{},"In this context \"default\" is literal. Conveniently there is a built-in 'default' queue that GitLab Sidekiq listens to, although nothing uses it out of the box. These rules will route all remaining jobs to that queue and the original/default Sidekiq workload will pick them up immediately. Then, at your convenience, you can reconfigure the original Sidekiq workload to listen ",[41,1055,1056],{},"only"," to \"default\" in the same way you configured the new workload to listen to \"export\", and gain the performance benefit in Redis.",[251,1059,1061],{"id":1060},"edge-cases","Edge cases",[12,1063,1064,1065,1068,1069,1074,1075,1080],{},"The routing rules example above is simplified slightly for clarity. In practice there are still a small set of queues that need to remain in their ",[41,1066,1067],{},"original"," dedicated named queue for a variety of reasons. We're working on resolving the blockers, but that may take a while to work through. You can follow along in ",[48,1070,1073],{"href":1071,"rel":1072},"https://gitlab.com/gitlab-com/gl-infra/scalability/-/issues/1087",[],"this issue",", or you can keep an eye on the routingRules ",[48,1076,1079],{"href":1077,"rel":1078},"https://gitlab.com/gitlab-com/gl-infra/k8s-workloads/gitlab-com/-/blob/master/releases/gitlab/values/gprd.yaml.gotmpl",[],"configuration for GitLab.com"," – special cases will be at the very top of the rules, routed by worker_name or name, and there will be a comment about why and a link to any related issues, which will help you determine if each is relevant to your needs. Some special cases may be there for GitLab.com-specific reasons and may not be generally applicable. In the long term we expect the list of special cases to reduce, not increase.",[12,1082,1083],{},"Also take into consideration that the special cases may be used for features that you do not use. Specifically:",[29,1085,1086,1094],{},[32,1087,1088,1089],{},"EmailReceiverWorker & ServiceDeskEmailReceiverWorker are for ",[48,1090,1093],{"href":1091,"rel":1092},"https://docs.gitlab.com/administration/incoming_email/",[],"Incoming email",[32,1095,1096],{},"ProjectImportScheduleWorker is for project mirroring",[12,1098,1099,1100,1102],{},"So you might be able to just ignore them, or route them to a queue that no worker is listening to and alert if ",[81,1101,105],{}," is above zero on those queues.",[53,1104,1106],{"id":1105},"migrating-when-using-routing-rules","Migrating when using routing rules",[12,1108,1109],{},"There is one more thing to note. When migrating an active GitLab deployment (rather than configuring this from scratch on a fresh GitLab deployment) the order of steps taken is important, and there's one additional step I haven't mentioned yet:",[29,1111,1112,1115,1118,1131],{},[32,1113,1114],{},"Ensure a Sidekiq workload is listening to the new queues",[32,1116,1117],{},"Change the routing rules",[32,1119,1120,1121,1126],{},"Run the Sidekiq job migration ",[48,1122,1125],{"href":1123,"rel":1124},"https://docs.gitlab.com/administration/sidekiq/sidekiq_job_migration/",[],"Rake task",[95,1127,1128],{},[32,1129,1130],{},"Any jobs that are scheduled for the future will be migrated to the new queue for correct execution",[32,1132,1133],{},"Stop listening to queues that are no longer in use",[12,1135,1136],{},"These steps will ensure a clean migration. If you do not do step 3, then at future times deferred jobs will be picked up out of their holding place in Redis and might be scheduled to a queue that no Sidekiq is listening to anymore. This is exactly the process we took on GitLab.com when migrating our configuration to one queue per shard.",[16,1138,1140],{"id":1139},"simplifying-complex-sidekiq-configurations","Simplifying complex Sidekiq configurations",[12,1142,1143],{},"Any complicated Sidekiq configuration can be broken down into a series of these individual migrations, identifying (using metrics) queues or workers that need specialized handling, spinning up a workload to run them, and then sending/routing the jobs to this new workload.",[12,1145,1146,1147,835,1152],{},"Cover image by ",[48,1148,1151],{"href":1149,"rel":1150},"https://unsplash.com/@z734923105",[],"Jerry Zhang",[48,1153,1156],{"href":1154,"rel":1155},"https://www.unsplash.com",[],"Unsplash",[1158,1159,1160],"style",{},"html pre.shiki code .sgsFI, html code.shiki .sgsFI{--shiki-default:#24292E}html pre.shiki code .sYBdl, html code.shiki .sYBdl{--shiki-default:#032F62}html pre.shiki code .sD7c4, html code.shiki .sD7c4{--shiki-default:#D73A49}html pre.shiki code .sYu0t, html code.shiki .sYu0t{--shiki-default:#005CC5}html .default .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html .shiki span {color: var(--shiki-default);background: var(--shiki-default-bg);font-style: var(--shiki-default-font-style);font-weight: var(--shiki-default-font-weight);text-decoration: var(--shiki-default-text-decoration);}html pre.shiki code .shJU0, html code.shiki .shJU0{--shiki-default:#22863A}html pre.shiki code .sAwPA, html code.shiki .sAwPA{--shiki-default:#6A737D}",{"title":283,"searchDepth":311,"depth":311,"links":1162},[1163,1169],{"id":18,"depth":311,"text":19,"children":1164},[1165,1166,1167,1168],{"id":55,"depth":325,"text":56},{"id":75,"depth":325,"text":76},{"id":177,"depth":325,"text":178},{"id":1105,"depth":325,"text":1106},{"id":1139,"depth":311,"text":1140},"engineering","2021-09-27","This tutorial unpacks how to configure Sidekiq that suits your GitLab deployment.","md",null,false,"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749667068/Blog/Hero%20Images/sidekiqmountain.jpg",{},true,"/en-us/blog/how-to-configure-sidekiq-for-gitlab-at-scale",{"title":5,"description":1172,"ogTitle":5,"ogDescription":1172,"noIndex":1175,"ogImage":1176,"ogUrl":1181,"ogSiteName":1182,"ogType":1183,"canonicalUrls":1181},"https://about.gitlab.com/blog/how-to-configure-sidekiq-for-gitlab-at-scale","https://about.gitlab.com","article","how-to-configure-sidekiq-for-gitlab-at-scale","en-us/blog/how-to-configure-sidekiq-for-gitlab-at-scale","BlogPost","gbME_UEuIZBZ_334i6XVloXsaYrbDZFT6BPq0aNq_EY",{"logo":1189,"freeTrial":1194,"sales":1199,"login":1204,"items":1209,"search":1536,"minimal":1567,"duo":1586,"switchNav":1595,"pricingDeployment":1606},{"config":1190},{"href":1191,"dataGaName":1192,"dataGaLocation":1193},"/","gitlab logo","header",{"text":1195,"config":1196},"Get free trial",{"href":1197,"dataGaName":1198,"dataGaLocation":1193},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com&glm_content=default-saas-trial/","free trial",{"text":1200,"config":1201},"Request a demo",{"href":1202,"dataGaName":1203,"dataGaLocation":1193},"/sales/?contact-topic=request-demo","sales",{"text":1205,"config":1206},"Sign in",{"href":1207,"dataGaName":1208,"dataGaLocation":1193},"https://gitlab.com/users/sign_in/","sign in",[1210,1239,1339,1344,1458,1514],{"text":1211,"config":1212,"menu":1214},"Platform",{"dataNavLevelOne":1213},"platform",{"type":1215,"columns":1216},"cards",[1217,1223,1231],{"title":1211,"description":1218,"link":1219},"The intelligent orchestration platform for DevSecOps",{"text":1220,"config":1221},"Explore our Platform",{"href":1222,"dataGaName":1213,"dataGaLocation":1193},"/platform/",{"title":1224,"description":1225,"link":1226},"GitLab Duo Agent Platform","Agentic AI for the entire software lifecycle",{"text":1227,"config":1228},"Meet GitLab Duo",{"href":1229,"dataGaName":1230,"dataGaLocation":1193},"/gitlab-duo-agent-platform/","gitlab duo agent platform",{"title":1232,"description":1233,"link":1234},"Why GitLab","See the top reasons enterprises choose GitLab",{"text":1235,"config":1236},"Learn more",{"href":1237,"dataGaName":1238,"dataGaLocation":1193},"/why-gitlab/","why gitlab",{"text":1240,"left":1178,"config":1241,"menu":1243},"Product",{"dataNavLevelOne":1242},"solutions",{"type":1244,"link":1245,"columns":1249,"feature":1318},"lists",{"text":1246,"config":1247},"View all Solutions",{"href":1248,"dataGaName":1242,"dataGaLocation":1193},"/solutions/",[1250,1274,1297],{"title":1251,"description":1252,"link":1253,"items":1258},"Automation","CI/CD and automation to accelerate deployment",{"config":1254},{"icon":1255,"href":1256,"dataGaName":1257,"dataGaLocation":1193},"AutomatedCodeAlt","/solutions/delivery-automation/","automated software delivery",[1259,1263,1266,1270],{"text":1260,"config":1261},"CI/CD",{"href":1262,"dataGaLocation":1193,"dataGaName":1260},"/solutions/continuous-integration/",{"text":1224,"config":1264},{"href":1229,"dataGaLocation":1193,"dataGaName":1265},"gitlab duo agent platform - product menu",{"text":1267,"config":1268},"Source Code Management",{"href":1269,"dataGaLocation":1193,"dataGaName":1267},"/solutions/source-code-management/",{"text":1271,"config":1272},"Automated Software Delivery",{"href":1256,"dataGaLocation":1193,"dataGaName":1273},"Automated software delivery",{"title":1275,"description":1276,"link":1277,"items":1282},"Security","Deliver code faster without compromising security",{"config":1278},{"href":1279,"dataGaName":1280,"dataGaLocation":1193,"icon":1281},"/solutions/application-security-testing/","security and compliance","ShieldCheckLight",[1283,1287,1292],{"text":1284,"config":1285},"Application Security Testing",{"href":1279,"dataGaName":1286,"dataGaLocation":1193},"Application security testing",{"text":1288,"config":1289},"Software Supply Chain Security",{"href":1290,"dataGaLocation":1193,"dataGaName":1291},"/solutions/supply-chain/","Software supply chain security",{"text":1293,"config":1294},"Software Compliance",{"href":1295,"dataGaName":1296,"dataGaLocation":1193},"/solutions/software-compliance/","software compliance",{"title":1298,"link":1299,"items":1304},"Measurement",{"config":1300},{"icon":1301,"href":1302,"dataGaName":1303,"dataGaLocation":1193},"DigitalTransformation","/solutions/visibility-measurement/","visibility and measurement",[1305,1309,1313],{"text":1306,"config":1307},"Visibility & Measurement",{"href":1302,"dataGaLocation":1193,"dataGaName":1308},"Visibility and Measurement",{"text":1310,"config":1311},"Value Stream Management",{"href":1312,"dataGaLocation":1193,"dataGaName":1310},"/solutions/value-stream-management/",{"text":1314,"config":1315},"Analytics & Insights",{"href":1316,"dataGaLocation":1193,"dataGaName":1317},"/solutions/analytics-and-insights/","Analytics and insights",{"title":1319,"type":1244,"items":1320},"GitLab for",[1321,1327,1333],{"text":1322,"config":1323},"Enterprise",{"icon":1324,"href":1325,"dataGaLocation":1193,"dataGaName":1326},"Building","/enterprise/","enterprise",{"text":1328,"config":1329},"Small Business",{"icon":1330,"href":1331,"dataGaLocation":1193,"dataGaName":1332},"Work","/small-business/","small business",{"text":1334,"config":1335},"Public Sector",{"icon":1336,"href":1337,"dataGaLocation":1193,"dataGaName":1338},"Organization","/solutions/public-sector/","public sector",{"text":1340,"config":1341},"Pricing",{"href":1342,"dataGaName":1343,"dataGaLocation":1193,"dataNavLevelOne":1343},"/pricing/","pricing",{"text":1345,"config":1346,"menu":1348},"Resources",{"dataNavLevelOne":1347},"resources",{"type":1244,"link":1349,"columns":1353,"feature":1447},{"text":1350,"config":1351},"View all resources",{"href":1352,"dataGaName":1347,"dataGaLocation":1193},"/resources/",[1354,1387,1414],{"title":1355,"items":1356},"Getting started",[1357,1362,1367,1372,1377,1382],{"text":1358,"config":1359},"Install",{"href":1360,"dataGaName":1361,"dataGaLocation":1193},"/install/","install",{"text":1363,"config":1364},"Quick start guides",{"href":1365,"dataGaName":1366,"dataGaLocation":1193},"/get-started/","quick setup checklists",{"text":1368,"config":1369},"Learn",{"href":1370,"dataGaLocation":1193,"dataGaName":1371},"https://university.gitlab.com/","learn",{"text":1373,"config":1374},"Product documentation",{"href":1375,"dataGaName":1376,"dataGaLocation":1193},"https://docs.gitlab.com/","product documentation",{"text":1378,"config":1379},"Best practice videos",{"href":1380,"dataGaName":1381,"dataGaLocation":1193},"/getting-started-videos/","best practice videos",{"text":1383,"config":1384},"Integrations",{"href":1385,"dataGaName":1386,"dataGaLocation":1193},"/integrations/","integrations",{"title":1388,"items":1389},"Discover",[1390,1395,1400,1405,1409],{"text":1391,"config":1392},"Customer success stories",{"href":1393,"dataGaName":1394,"dataGaLocation":1193},"/customers/","customer success stories",{"text":1396,"config":1397},"Blog",{"href":1398,"dataGaName":1399,"dataGaLocation":1193},"/blog/","blog",{"text":1401,"config":1402},"Demo Hub",{"href":1403,"dataGaName":1404,"dataGaLocation":1193},"/demo-hub/","demo hub",{"text":1406,"config":1407},"The Source",{"href":1408,"dataGaName":1399,"dataGaLocation":1193},"/the-source/",{"text":1410,"config":1411},"Remote",{"href":1412,"dataGaName":1413,"dataGaLocation":1193},"https://handbook.gitlab.com/handbook/company/culture/all-remote/","remote",{"title":1415,"items":1416},"Connect",[1417,1422,1427,1432,1437,1442],{"text":1418,"config":1419},"GitLab Services",{"href":1420,"dataGaName":1421,"dataGaLocation":1193},"/services/","services",{"text":1423,"config":1424},"Contribute",{"href":1425,"dataGaName":1426,"dataGaLocation":1193},"https://contributors.gitlab.com","contribute",{"text":1428,"config":1429},"Community",{"href":1430,"dataGaName":1431,"dataGaLocation":1193},"/community/","community",{"text":1433,"config":1434},"Forum",{"href":1435,"dataGaName":1436,"dataGaLocation":1193},"https://forum.gitlab.com/","forum",{"text":1438,"config":1439},"Events",{"href":1440,"dataGaName":1441,"dataGaLocation":1193},"/events/","events",{"text":1443,"config":1444},"Partners",{"href":1445,"dataGaName":1446,"dataGaLocation":1193},"/partners/","partners",{"config":1448,"title":1451,"text":1452,"link":1453},{"background":1449,"textColor":1450},"url('https://res.cloudinary.com/about-gitlab-com/image/upload/v1777322348/qpq8yrgn8knii57omj0c.png')","#000","What’s new in GitLab","Stay updated with our latest features and improvements.",{"text":1454,"config":1455},"Read the latest",{"href":1456,"dataGaName":1457,"dataGaLocation":1193},"/whats-new/","whats new",{"text":1459,"config":1460,"menu":1462},"Company",{"dataNavLevelOne":1461},"company",{"type":1244,"columns":1463},[1464],{"items":1465},[1466,1471,1477,1479,1484,1489,1494,1499,1504,1509],{"text":1467,"config":1468},"About",{"href":1469,"dataGaName":1470,"dataGaLocation":1193},"/company/","about",{"text":1472,"config":1473,"footerGa":1476},"Jobs",{"href":1474,"dataGaName":1475,"dataGaLocation":1193},"/jobs/","jobs",{"dataGaName":1475},{"text":1438,"config":1478},{"href":1440,"dataGaName":1441,"dataGaLocation":1193},{"text":1480,"config":1481},"Leadership",{"href":1482,"dataGaName":1483,"dataGaLocation":1193},"/company/team/e-group/","leadership",{"text":1485,"config":1486},"Handbook",{"href":1487,"dataGaName":1488,"dataGaLocation":1193},"https://handbook.gitlab.com/","handbook",{"text":1490,"config":1491},"Investor relations",{"href":1492,"dataGaName":1493,"dataGaLocation":1193},"https://ir.gitlab.com/overview/default.aspx","investor relations",{"text":1495,"config":1496},"Trust Center",{"href":1497,"dataGaName":1498,"dataGaLocation":1193},"/security/","trust center",{"text":1500,"config":1501},"AI Transparency Center",{"href":1502,"dataGaName":1503,"dataGaLocation":1193},"/ai-transparency-center/","ai transparency center",{"text":1505,"config":1506},"Newsletter",{"href":1507,"dataGaName":1508,"dataGaLocation":1193},"/company/contact/#contact-forms","newsletter",{"text":1510,"config":1511},"Press",{"href":1512,"dataGaName":1513,"dataGaLocation":1193},"/press/","press",{"text":1515,"config":1516,"menu":1517},"Contact us",{"dataNavLevelOne":1461},{"type":1244,"columns":1518},[1519],{"items":1520},[1521,1526,1531],{"text":1522,"config":1523},"Talk to sales",{"href":1524,"dataGaName":1525,"dataGaLocation":1193},"/sales/","talk to sales",{"text":1527,"config":1528},"Support portal",{"href":1529,"dataGaName":1530,"dataGaLocation":1193},"https://support.gitlab.com/hc/en-us","support portal",{"text":1532,"config":1533},"Customer portal",{"href":1534,"dataGaName":1535,"dataGaLocation":1193},"https://customers.gitlab.com/customers/sign_in/","customer portal",{"close":1537,"login":1538,"suggestions":1545},"Close",{"text":1539,"link":1540},"To search repositories and projects, login to",{"text":1541,"config":1542},"gitlab.com",{"href":1207,"dataGaName":1543,"dataGaLocation":1544},"search login","search",{"text":1546,"default":1547},"Suggestions",[1548,1550,1554,1556,1560,1564],{"text":1224,"config":1549},{"href":1229,"dataGaName":1224,"dataGaLocation":1544},{"text":1551,"config":1552},"Code Suggestions (AI)",{"href":1553,"dataGaName":1551,"dataGaLocation":1544},"/solutions/code-suggestions/",{"text":1260,"config":1555},{"href":1262,"dataGaName":1260,"dataGaLocation":1544},{"text":1557,"config":1558},"GitLab on AWS",{"href":1559,"dataGaName":1557,"dataGaLocation":1544},"/partners/technology-partners/aws/",{"text":1561,"config":1562},"GitLab on Google Cloud",{"href":1563,"dataGaName":1561,"dataGaLocation":1544},"/partners/technology-partners/google-cloud-platform/",{"text":1565,"config":1566},"Why GitLab?",{"href":1237,"dataGaName":1565,"dataGaLocation":1544},{"freeTrial":1568,"mobileIcon":1573,"desktopIcon":1578,"secondaryButton":1581},{"text":1569,"config":1570},"Start free trial",{"href":1571,"dataGaName":1198,"dataGaLocation":1572},"https://gitlab.com/-/trials/new/","nav",{"altText":1574,"config":1575},"Gitlab Icon",{"src":1576,"dataGaName":1577,"dataGaLocation":1572},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203874/jypbw1jx72aexsoohd7x.svg","gitlab icon",{"altText":1574,"config":1579},{"src":1580,"dataGaName":1577,"dataGaLocation":1572},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1758203875/gs4c8p8opsgvflgkswz9.svg",{"text":1582,"config":1583},"Get Started",{"href":1584,"dataGaName":1585,"dataGaLocation":1572},"https://gitlab.com/-/trial_registrations/new?glm_source=about.gitlab.com/get-started/","get started",{"freeTrial":1587,"mobileIcon":1591,"desktopIcon":1593},{"text":1588,"config":1589},"Learn more about GitLab Duo",{"href":1229,"dataGaName":1590,"dataGaLocation":1572},"gitlab duo",{"altText":1574,"config":1592},{"src":1576,"dataGaName":1577,"dataGaLocation":1572},{"altText":1574,"config":1594},{"src":1580,"dataGaName":1577,"dataGaLocation":1572},{"button":1596,"mobileIcon":1601,"desktopIcon":1603},{"text":1597,"config":1598},"/switch",{"href":1599,"dataGaName":1600,"dataGaLocation":1572},"#contact","switch",{"altText":1574,"config":1602},{"src":1576,"dataGaName":1577,"dataGaLocation":1572},{"altText":1574,"config":1604},{"src":1605,"dataGaName":1577,"dataGaLocation":1572},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1773335277/ohhpiuoxoldryzrnhfrh.png",{"freeTrial":1607,"mobileIcon":1612,"desktopIcon":1614},{"text":1608,"config":1609},"Back to pricing",{"href":1342,"dataGaName":1610,"dataGaLocation":1572,"icon":1611},"back to pricing","GoBack",{"altText":1574,"config":1613},{"src":1576,"dataGaName":1577,"dataGaLocation":1572},{"altText":1574,"config":1615},{"src":1580,"dataGaName":1577,"dataGaLocation":1572},{"title":1617,"titleMobile":1618,"button":1619,"config":1624},"Duo Agent Platform delivers 400% ROI, per new Forrester Consulting study.","400% ROI: Forrester TEI for GitLab Duo",{"text":1235,"config":1620},{"href":1621,"dataGaName":1622,"dataGaLocation":1623},"https://about.gitlab.com/blog/gitlab-duo-agent-platform-delivers-400-percent-roi/","forrester-tei-dap-banner","global-banner",{"layout":1625,"disabled":1175},"release",{"data":1627},{"text":1628,"source":1629,"edit":1635,"contribute":1640,"config":1645,"items":1650,"minimal":1860},"Git is a trademark of Software Freedom Conservancy and our use of 'GitLab' is under license",{"text":1630,"config":1631},"View page source",{"href":1632,"dataGaName":1633,"dataGaLocation":1634},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/","page source","footer",{"text":1636,"config":1637},"Edit this page",{"href":1638,"dataGaName":1639,"dataGaLocation":1634},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/content/","web ide",{"text":1641,"config":1642},"Please contribute",{"href":1643,"dataGaName":1644,"dataGaLocation":1634},"https://gitlab.com/gitlab-com/marketing/digital-experience/about-gitlab-com/-/blob/main/CONTRIBUTING.md/","please contribute",{"twitter":1646,"facebook":1647,"youtube":1648,"linkedin":1649},"https://twitter.com/gitlab","https://www.facebook.com/gitlab","https://www.youtube.com/channel/UCnMGQ8QHMAnVIsI3xJrihhg","https://www.linkedin.com/company/gitlab-com",[1651,1698,1752,1796,1828],{"title":1340,"links":1652,"subMenu":1667},[1653,1657,1662],{"text":1654,"config":1655},"View plans",{"href":1342,"dataGaName":1656,"dataGaLocation":1634},"view plans",{"text":1658,"config":1659},"Why Premium?",{"href":1660,"dataGaName":1661,"dataGaLocation":1634},"/pricing/premium/","why premium",{"text":1663,"config":1664},"Why Ultimate?",{"href":1665,"dataGaName":1666,"dataGaLocation":1634},"/pricing/ultimate/","why ultimate",[1668],{"title":1669,"links":1670},"Contact Us",[1671,1674,1676,1678,1683,1688,1693],{"text":1672,"config":1673},"Contact sales",{"href":1524,"dataGaName":1203,"dataGaLocation":1634},{"text":1527,"config":1675},{"href":1529,"dataGaName":1530,"dataGaLocation":1634},{"text":1532,"config":1677},{"href":1534,"dataGaName":1535,"dataGaLocation":1634},{"text":1679,"config":1680},"Status",{"href":1681,"dataGaName":1682,"dataGaLocation":1634},"https://status.gitlab.com/","status",{"text":1684,"config":1685},"Terms of use",{"href":1686,"dataGaName":1687,"dataGaLocation":1634},"/terms/","terms of use",{"text":1689,"config":1690},"Privacy statement",{"href":1691,"dataGaName":1692,"dataGaLocation":1634},"/privacy/","privacy statement",{"text":1694,"config":1695},"Cookie preferences",{"dataGaName":1696,"dataGaLocation":1634,"id":1697,"isOneTrustButton":1178},"cookie preferences","ot-sdk-btn",{"title":1240,"links":1699,"subMenu":1708},[1700,1704],{"text":1701,"config":1702},"DevSecOps platform",{"href":1222,"dataGaName":1703,"dataGaLocation":1634},"devsecops platform",{"text":1705,"config":1706},"AI-Assisted Development",{"href":1229,"dataGaName":1707,"dataGaLocation":1634},"ai-assisted development",[1709],{"title":1710,"links":1711},"Topics",[1712,1717,1722,1727,1732,1737,1742,1747],{"text":1713,"config":1714},"CICD",{"href":1715,"dataGaName":1716,"dataGaLocation":1634},"/topics/ci-cd/","cicd",{"text":1718,"config":1719},"GitOps",{"href":1720,"dataGaName":1721,"dataGaLocation":1634},"/topics/gitops/","gitops",{"text":1723,"config":1724},"DevOps",{"href":1725,"dataGaName":1726,"dataGaLocation":1634},"/topics/devops/","devops",{"text":1728,"config":1729},"Version Control",{"href":1730,"dataGaName":1731,"dataGaLocation":1634},"/topics/version-control/","version control",{"text":1733,"config":1734},"DevSecOps",{"href":1735,"dataGaName":1736,"dataGaLocation":1634},"/topics/devsecops/","devsecops",{"text":1738,"config":1739},"Cloud Native",{"href":1740,"dataGaName":1741,"dataGaLocation":1634},"/topics/cloud-native/","cloud native",{"text":1743,"config":1744},"AI for Coding",{"href":1745,"dataGaName":1746,"dataGaLocation":1634},"/topics/devops/ai-for-coding/","ai for coding",{"text":1748,"config":1749},"Agentic AI",{"href":1750,"dataGaName":1751,"dataGaLocation":1634},"/topics/agentic-ai/","agentic ai",{"title":1753,"links":1754},"Solutions",[1755,1757,1759,1764,1768,1771,1775,1778,1780,1783,1786,1791],{"text":1284,"config":1756},{"href":1279,"dataGaName":1284,"dataGaLocation":1634},{"text":1273,"config":1758},{"href":1256,"dataGaName":1257,"dataGaLocation":1634},{"text":1760,"config":1761},"Agile development",{"href":1762,"dataGaName":1763,"dataGaLocation":1634},"/solutions/agile-delivery/","agile delivery",{"text":1765,"config":1766},"SCM",{"href":1269,"dataGaName":1767,"dataGaLocation":1634},"source code management",{"text":1713,"config":1769},{"href":1262,"dataGaName":1770,"dataGaLocation":1634},"continuous integration & delivery",{"text":1772,"config":1773},"Value stream management",{"href":1312,"dataGaName":1774,"dataGaLocation":1634},"value stream management",{"text":1718,"config":1776},{"href":1777,"dataGaName":1721,"dataGaLocation":1634},"/solutions/gitops/",{"text":1322,"config":1779},{"href":1325,"dataGaName":1326,"dataGaLocation":1634},{"text":1781,"config":1782},"Small business",{"href":1331,"dataGaName":1332,"dataGaLocation":1634},{"text":1784,"config":1785},"Public sector",{"href":1337,"dataGaName":1338,"dataGaLocation":1634},{"text":1787,"config":1788},"Education",{"href":1789,"dataGaName":1790,"dataGaLocation":1634},"/solutions/education/","education",{"text":1792,"config":1793},"Financial services",{"href":1794,"dataGaName":1795,"dataGaLocation":1634},"/solutions/finance/","financial services",{"title":1345,"links":1797},[1798,1800,1802,1804,1807,1809,1812,1814,1816,1818,1820,1822,1824,1826],{"text":1358,"config":1799},{"href":1360,"dataGaName":1361,"dataGaLocation":1634},{"text":1363,"config":1801},{"href":1365,"dataGaName":1366,"dataGaLocation":1634},{"text":1368,"config":1803},{"href":1370,"dataGaName":1371,"dataGaLocation":1634},{"text":1373,"config":1805},{"href":1375,"dataGaName":1806,"dataGaLocation":1634},"docs",{"text":1396,"config":1808},{"href":1398,"dataGaName":1399,"dataGaLocation":1634},{"text":1810,"config":1811},"What's new",{"href":1456,"dataGaName":1457,"dataGaLocation":1634},{"text":1391,"config":1813},{"href":1393,"dataGaName":1394,"dataGaLocation":1634},{"text":1410,"config":1815},{"href":1412,"dataGaName":1413,"dataGaLocation":1634},{"text":1418,"config":1817},{"href":1420,"dataGaName":1421,"dataGaLocation":1634},{"text":1423,"config":1819},{"href":1425,"dataGaName":1426,"dataGaLocation":1634},{"text":1428,"config":1821},{"href":1430,"dataGaName":1431,"dataGaLocation":1634},{"text":1433,"config":1823},{"href":1435,"dataGaName":1436,"dataGaLocation":1634},{"text":1438,"config":1825},{"href":1440,"dataGaName":1441,"dataGaLocation":1634},{"text":1443,"config":1827},{"href":1445,"dataGaName":1446,"dataGaLocation":1634},{"title":1459,"links":1829},[1830,1832,1834,1836,1838,1840,1844,1849,1851,1853,1855],{"text":1467,"config":1831},{"href":1469,"dataGaName":1461,"dataGaLocation":1634},{"text":1472,"config":1833},{"href":1474,"dataGaName":1475,"dataGaLocation":1634},{"text":1480,"config":1835},{"href":1482,"dataGaName":1483,"dataGaLocation":1634},{"text":1485,"config":1837},{"href":1487,"dataGaName":1488,"dataGaLocation":1634},{"text":1490,"config":1839},{"href":1492,"dataGaName":1493,"dataGaLocation":1634},{"text":1841,"config":1842},"Sustainability",{"href":1843,"dataGaName":1841,"dataGaLocation":1634},"/sustainability/",{"text":1845,"config":1846},"Diversity, inclusion and belonging (DIB)",{"href":1847,"dataGaName":1848,"dataGaLocation":1634},"/diversity-inclusion-belonging/","Diversity, inclusion and belonging",{"text":1495,"config":1850},{"href":1497,"dataGaName":1498,"dataGaLocation":1634},{"text":1505,"config":1852},{"href":1507,"dataGaName":1508,"dataGaLocation":1634},{"text":1510,"config":1854},{"href":1512,"dataGaName":1513,"dataGaLocation":1634},{"text":1856,"config":1857},"Modern Slavery Transparency Statement",{"href":1858,"dataGaName":1859,"dataGaLocation":1634},"https://handbook.gitlab.com/handbook/legal/modern-slavery-act-transparency-statement/","modern slavery transparency statement",{"items":1861},[1862,1865,1868],{"text":1863,"config":1864},"Terms",{"href":1686,"dataGaName":1687,"dataGaLocation":1634},{"text":1866,"config":1867},"Cookies",{"dataGaName":1696,"dataGaLocation":1634,"id":1697,"isOneTrustButton":1178},{"text":1869,"config":1870},"Privacy",{"href":1691,"dataGaName":1692,"dataGaLocation":1634},[1872],{"id":1873,"title":7,"body":1174,"config":1874,"content":1876,"description":1174,"extension":1880,"meta":1881,"navigation":1178,"path":1882,"seo":1883,"stem":1884,"__hash__":1885},"blogAuthors/en-us/blog/authors/craig-miskell.yml",{"template":1875},"BlogAuthor",{"name":7,"config":1877},{"headshot":1878,"ctfId":1879},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1749667372/Blog/Author%20Headshots/cmiskell-headshot.jpg","cmiskell","yml",{},"/en-us/blog/authors/craig-miskell",{},"en-us/blog/authors/craig-miskell","VPOHmA7ISNMfEE3Y0SkxSJD1DRgIqQVOLz9bf8UCnh8",[1887,1896,1904],{"title":1888,"description":1889,"heroImage":1890,"category":1170,"date":1891,"authors":1892,"slug":1895,"externalUrl":1174},"Confidential AI for GitLab Self-Hosted","Give developers AI coding agents in GitLab Duo without source code leaving a hardware-encrypted boundary — no GPUs needed.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1773866173/vte9qh8rriznvyclhkes.png","2026-08-06",[1893,1894],"Mathias Ewald","Martin Paloncy, Edgeless Systems","confidential-ai-for-gitlab-self-hosted",{"title":1897,"description":1898,"heroImage":1899,"category":1170,"date":1900,"authors":1901,"slug":1903,"externalUrl":1174},"Green DevOps: Why carbon measurement belongs in your CI/CD pipeline","CI/CD pipelines have a hidden carbon cost. Here's why measuring it matters, and how you can get started with Eco CI and Carmen in GitLab.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1765809212/noh0mdfn9o94ry9ykura.png","2026-07-09",[1902],"Lysanne Pinto","green-devops-carbon-measurement-cicd-pipeline",{"title":1905,"description":1906,"heroImage":1907,"category":1170,"date":1908,"authors":1909,"slug":1911,"externalUrl":1174},"How to build CI/CD observability at scale","This practical guide to GitLab pipeline analytics helps self-managed users gain operational insights using Prometheus and Grafana.","https://res.cloudinary.com/about-gitlab-com/image/upload/v1774465167/n5hlvrsrheadeccyr1oz.png","2026-04-28",[1910],"Paul Meresanu","how-to-build-ci-cd-observability-at-scale",{"promotions":1913},[1914,1928,1940,1952],{"id":1915,"categories":1916,"header":1918,"text":1919,"button":1920,"image":1925},"ai-modernization",[1917],"ai","Is AI achieving its promise at scale?","Quiz will take 5 minutes or less",{"text":1921,"config":1922},"Get your AI maturity score",{"href":1923,"dataGaName":1924,"dataGaLocation":1399},"/assessments/ai-modernization-assessment/","modernization assessment",{"config":1926},{"src":1927},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/qix0m7kwnd8x2fh1zq49.png",{"id":1929,"categories":1930,"header":1932,"text":1919,"button":1933,"image":1937},"devops-modernization",[1931,1736],"product","Are you just managing tools or shipping innovation?",{"text":1934,"config":1935},"Get your DevOps maturity score",{"href":1936,"dataGaName":1924,"dataGaLocation":1399},"/assessments/devops-modernization-assessment/",{"config":1938},{"src":1939},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138785/eg818fmakweyuznttgid.png",{"id":1941,"categories":1942,"header":1944,"text":1919,"button":1945,"image":1949},"security-modernization",[1943],"security","Are you trading speed for security?",{"text":1946,"config":1947},"Get your security maturity score",{"href":1948,"dataGaName":1924,"dataGaLocation":1399},"/assessments/security-modernization-assessment/",{"config":1950},{"src":1951},"https://res.cloudinary.com/about-gitlab-com/image/upload/v1772138786/p4pbqd9nnjejg5ds6mdk.png",{"id":1953,"paths":1954,"header":1957,"text":1958,"button":1959,"image":1964},"github-azure-migration",[1955,1956],"migration-from-azure-devops-to-gitlab","integrating-azure-devops-scm-and-gitlab","Is your team ready for GitHub's Azure move?","GitHub is already rebuilding around Azure. Find out what it means for you.",{"text":1960,"config":1961},"See how GitLab compares to GitHub",{"href":1962,"dataGaName":1963,"dataGaLocation":1399},"/compare/gitlab-vs-github/github-azure-migration/","github azure migration",{"config":1965},{"src":1939},{"header":1967,"blurb":1968,"button":1969,"secondaryButton":1974},"Start building faster today","See what your team can do with the intelligent orchestration platform for DevSecOps.\n",{"text":1970,"config":1971},"Get your free trial",{"href":1972,"dataGaName":1198,"dataGaLocation":1973},"https://gitlab.com/-/trial_registrations/new?glm_content=default-saas-trial&glm_source=about.gitlab.com/","feature",{"text":1672,"config":1975},{"href":1524,"dataGaName":1203,"dataGaLocation":1973},1786803751983]