Uploaded image for project: 'Jira Data Center'
  1. Jira Data Center
  2. JRASERVER-70950

Parameterize the amount of Threads for webhook processing

    XMLWordPrintable

Details

    • Suggestion
    • Resolution: Unresolved
    • None
    • Webhooks
    • 3
    • We collect Jira feedback from various sources, and we evaluate what we've collected when planning our product roadmap. To understand how this piece of feedback will be reviewed, see our Implementation of New Features Policy.

    Description

      The scenario

      Currently (as of Jira 7.13.13 and 8.8.0), Jira only works with a Thread pool of 3 Threads for webhook processing:

      com.atlassian.webhooks.plugin.WebHookPublisherImpl
          public WebHookPublisherImpl(WebHookListenerAccessVoter accessVoter, WebHookListenerProvider listenerProvider,
                  PublishTaskFactory publishTaskFactory, EventPublisher eventPublisher, LegacyModuleDescriptorWebHookListenerRegistryImpl legacyListeners)
          {
              this(accessVoter, listenerProvider, publishTaskFactory, eventPublisher, legacyListeners,
                      new ThreadPoolExecutor(3, 3, 0L, TimeUnit.MILLISECONDS,
                          new LinkedBlockingQueue<Runnable>(PUBLISH_QUEUE_SIZE),
                          new ThreadFactoryBuilder().setNameFormat("Web-Hook-Publisher-%d").setDaemon(true).build()),
                      true);
          }
      

      The source code's hardcoded with a 3 Thread pool size.

      The ask

      We ask that web hooks Thread pool size be parameterize in some way, through jira-config.properties, for example. Default could remain 3.

      Related issue

      If we have JRASERVER-39361 implemented with logs around each webhook processing, we could assertively determine if the Thread pool for web hooks should be increased or not.

       

      Cheers

      Attachments

        Issue Links

          Activity

            People

              Unassigned Unassigned
              rmartinez3@atlassian.com Rodrigo Martinez
              Votes:
              9 Vote for this issue
              Watchers:
              10 Start watching this issue

              Dates

                Created:
                Updated: