Browse Source

[C++] [userver] bump userver commit, improve application scalability (#9219)

* bump userver commit

* improve scalability

* fix the configs
itrofimow 11 months ago
parent
commit
3db2b8d977

+ 1 - 1
frameworks/C++/userver/userver-bare.dockerfile

@@ -6,7 +6,7 @@ RUN apt update && \
 
 
 WORKDIR /src
 WORKDIR /src
 RUN git clone https://github.com/userver-framework/userver.git && \
 RUN git clone https://github.com/userver-framework/userver.git && \
-    cd userver && git checkout ec1a3b07793f8d4cd0968cd61d8e6079d667a1e7
+    cd userver && git checkout bdd5e1e03921ff378b062f86a189c3cfa3d66332
 
 
 COPY userver_benchmark/ ./
 COPY userver_benchmark/ ./
 RUN mkdir build && cd build && \
 RUN mkdir build && cd build && \

+ 1 - 1
frameworks/C++/userver/userver.dockerfile

@@ -6,7 +6,7 @@ RUN apt update && \
 
 
 WORKDIR /src
 WORKDIR /src
 RUN git clone https://github.com/userver-framework/userver.git && \
 RUN git clone https://github.com/userver-framework/userver.git && \
-    cd userver && git checkout ec1a3b07793f8d4cd0968cd61d8e6079d667a1e7
+    cd userver && git checkout bdd5e1e03921ff378b062f86a189c3cfa3d66332
 
 
 COPY userver_benchmark/ ./
 COPY userver_benchmark/ ./
 RUN mkdir build && cd build && \
 RUN mkdir build && cd build && \

+ 3 - 3
frameworks/C++/userver/userver_configs/static_config.yaml

@@ -1,8 +1,7 @@
 # yaml
 # yaml
 components_manager:
 components_manager:
     event_thread_pool:
     event_thread_pool:
-        threads: 9
-        dedicated_timer_threads: 1
+        threads: 8
     coro_pool:
     coro_pool:
         initial_size: 10000              # Preallocate 10000 coroutines at startup.
         initial_size: 10000              # Preallocate 10000 coroutines at startup.
         max_size: 300000                 # Do not keep more than 300000 preallocated coroutines.
         max_size: 300000                 # Do not keep more than 300000 preallocated coroutines.
@@ -12,8 +11,9 @@ components_manager:
 
 
         main-task-processor:            # Make a task processor for CPU-bound couroutine tasks.
         main-task-processor:            # Make a task processor for CPU-bound couroutine tasks.
             thread_name: main-worker    # OS will show the threads of this task processor with 'main-worker' prefix.
             thread_name: main-worker    # OS will show the threads of this task processor with 'main-worker' prefix.
-            worker_threads: 46
+            worker_threads: 48
             guess-cpu-limit: true
             guess-cpu-limit: true
+            task-processor-queue: work-stealing-task-queue
 
 
         fs-task-processor:              # Make a separate task processor for filesystem bound tasks.
         fs-task-processor:              # Make a separate task processor for filesystem bound tasks.
             thread_name: fs-worker
             thread_name: fs-worker