Uploaded image for project: 'Solr'
  1. Solr
  2. SOLR-9559

Add ExecutorStream to execute stored Streaming Expressions

    Details

    • Type: New Feature
    • Status: Closed
    • Priority: Major
    • Resolution: Implemented
    • Affects Version/s: None
    • Fix Version/s: 6.3
    • Component/s: None
    • Security Level: Public (Default Security Level. Issues are Public)
    • Labels:
      None

      Description

      The ExecutorStream will wrap a stream which contains Tuples with Streaming Expressions to execute. By default the ExecutorStream will look for the expression in the expr_s field in the Tuples.

      The ExecutorStream will have an internal thread pool so expressions can be executed in parallel on a single worker. The ExecutorStream can also be wrapped by the parallel function to partition the Streaming Expressions that need to be executed across a cluster of worker nodes.

      Sample syntax:

      daemon(executor(threads=10, topic(storedExpressions, fl="expr_s", ...)))
      

      In the example above a daemon wraps an executor which wraps a topic that is reading stored Streaming Expressions. The daemon will call the executor at intervals which will execute all the expressions retrieved by the topic.

        Attachments

        1. SOLR-9559.patch
          8 kB
          Joel Bernstein
        2. SOLR-9559.patch
          15 kB
          Joel Bernstein
        3. SOLR-9559.patch
          20 kB
          Joel Bernstein
        4. SOLR-9559.patch
          21 kB
          Joel Bernstein

          Issue Links

            Activity

              People

              • Assignee:
                joel.bernstein Joel Bernstein
                Reporter:
                joel.bernstein Joel Bernstein
              • Votes:
                1 Vote for this issue
                Watchers:
                8 Start watching this issue

                Dates

                • Created:
                  Updated:
                  Resolved: