Apache Ignite - Executor中的池大小(Apache Ignite - Pool size in Executor)
我正在尝试使用基于群集的执行程序服务。
//获取启用群集的执行程序服务。 ExecutorService exec = ignite.executorService();
无论如何设置执行程序服务池中的线程数?
希望,Jobs将以循环方式在集群中的每个节点中执行。
谢谢
I am trying to use cluster based executor service.
// Get cluster-enabled executor service. ExecutorService exec = ignite.executorService();
Is there anyway to set the number of threads in the executor service pool?
Hope, Jobs will be executed in each node in a cluster in a round robin fashion.
Thanks
原文:https://stackoverflow.com/questions/41960996
更新时间:2024-02-15 07:02
最满意答案
- 您指定
/
位置两次。- 你已经多次声明了gzip指令。
- 您没有关闭服务器块。
这是固定的:
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /var/www/html; index index.html index.htm; server_name forums.creativethoughts.us www.forums.creativethoughts.us; location / { try_files $uri $uri/ /index.php?$query_string; } location /api { try_files $uri $uri/ /api.php?$query_string; } location /admin { try_files $uri $uri/ /admin.php?$query_string; } location /flarum { deny all; return 404; } location ~* \.php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability fastcgi_index index.php; } location ~* \.html$ { expires -1; } location ~* \.(css|js|gif|jpe?g|png)$ { expires 1M; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } } gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types application/atom+xml application/javascript application/json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/xml; gzip_buffers 16 8k; gzip_disable "MSIE [1-6]\.(?!.*SV1)";
- You are specifying the
/
location twice.- You've declared the gzip directive multiple times.
- You are not closing the server block.
Here is the fixed one:
server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /var/www/html; index index.html index.htm; server_name forums.creativethoughts.us www.forums.creativethoughts.us; location / { try_files $uri $uri/ /index.php?$query_string; } location /api { try_files $uri $uri/ /api.php?$query_string; } location /admin { try_files $uri $uri/ /admin.php?$query_string; } location /flarum { deny all; return 404; } location ~* \.php$ { fastcgi_split_path_info ^(.+.php)(/.+)$; fastcgi_pass unix:/var/run/php5-fpm.sock; include fastcgi_params; fastcgi_param SCRIPT_FILENAME $document_root$fastcgi_script_name; fastcgi_param HTTP_PROXY ""; # Fix for https://httpoxy.org/ vulnerability fastcgi_index index.php; } location ~* \.html$ { expires -1; } location ~* \.(css|js|gif|jpe?g|png)$ { expires 1M; add_header Pragma public; add_header Cache-Control "public, must-revalidate, proxy-revalidate"; } } gzip_http_version 1.1; gzip_vary on; gzip_comp_level 6; gzip_proxied any; gzip_types application/atom+xml application/javascript application/json application/vnd.ms-fontobject application/x-font-ttf application/x-web-app-manifest+json application/xhtml+xml application/xml font/opentype image/svg+xml image/x-icon text/css text/plain text/xml; gzip_buffers 16 8k; gzip_disable "MSIE [1-6]\.(?!.*SV1)";
相关问答
更多-
检查目录/ home / Foo / log / nginx /上的权限。 它必须由nginx写入。 像这样设置权限: sudo chmod 766 /home/Foo/log/nginx Check the permissions on the directory /home/Foo/log/nginx/. It must be writable by nginx. Set permissions like so: sudo chmod 766 /home/Foo/log/nginx
-
在nginx下运行时,应该使用ngx.log。 例如: ngx.log(ngx.STDERR, 'your message here') 有关工作示例,请参阅http://linuxfiddle.net/f/77630edc-b851-487c-b2c8-aa6c9b858ebb 有关文档,请参阅http://wiki.nginx.org/HttpLuaModule#ngx.log When running under nginx, you should use ngx.log. E.g: ngx.log( ...
-
Ampache nginx配置(Ampache nginx config)[2022-05-01]
对我来说,问题是通过创建错误日志文件夹/var/log/ampache/ 。 对于进一步的麻烦(如果需要)使用sudo nginx -c /etc/nginx/nginx.conf -t ,这会给你更详细的错误消息。 祝你好运! For me the problem was solved with creating the error log folder /var/log/ampache/. For further troubelshooting (if needed) use sudo nginx -c ... -
尝试 location ~ ^/(first/location|second/location)/ { ... } 〜表示使用正则表达式的url。 ^表示从第一个字符检查。 这将寻找一个/后面的任一位置,然后另一个/。 Try location ~ ^/(first/location|second/location)/ { ... } The ~ means to use a regular expression for the url. The ^ means to check from th ...
-
NginX尽管配置60秒后发出HTTP 499错误。(NginX issues HTTP 499 error after 60 seconds despite config. (PHP and AWS))[2022-02-20]
问题的原因是AWS上的弹性负载平衡器。 默认情况下,它们在60秒不活动之后超时,这是导致问题的原因。 所以不是NginX,PHP-FPM或PHP,而是负载平衡器。 要解决这个问题,只需进入ELB“说明”选项卡,滚动到底部,然后单击“空闲超时:60秒”的值旁边的“(编辑)”链接 The cause of the problem is the Elastic Load Balancers on AWS. They, by default, timeout after 60 seconds of inactivi ... -
这都是发行版和包不是nginx版本的问题, 我之前在一个不同的答案中对此进行了解释 ,主要和唯一重要的文件是nginx.conf ,如果你检查那个文件,你就会知道哪些文件夹很重要不要,例如debian发行版在他们的配置中添加这一行 include /etc/nginx/sites-enabled/*; 因此,auto包含sites-enabled文件夹中的所有文件, Redhat发行版仅使用此行 include /etc/nginx/conf.d/*.conf; 这也是btw还包含在debian分布式配 ...
-
如果它正在运行,如果它重新加载nginx配置,或者如果它停止启动?(How to reload nginx config if it is running or start if it's stopped?)[2022-06-22]
如果你不能指望nginx已经在运行的事实,那么你应该重新启动它。 但是,如果你真的想要上面的内容,假设你在linux / unix上运行,并且看起来像你,那么你可以创建一个很小的shell脚本。 同样,假设你的默认shell是bash或bash兼容的(其他shell必须被移植),你可以这样做: #!/bin/sh if [ -f /run/nginx.pid ]; then /path/to/nginx -s reload else /path/to/whatever/command/star ... -
看起来你在构建docker容器的项目中缺少proxy.conf。 它看起来像名为Proxy.conf ,它应该被命名为proxy.conf 。 Looks like you are missing the proxy.conf in your project where you build the docker container. It looks like you have it named Proxy.conf and it should be named proxy.conf.
-
好吧所以这个问题比我想象的要简单。 我正在使用不支持ssl的免费cloudflare dns指向。 我切换到使用namescheap dns,它开始工作。 okay so the problem was simpler than I thought. I was using the free cloudflare dns pointing which didn't support ssl. I switched to using the namescheap dns and it started worki ...
-
编辑配置时出现Nginx错误(Nginx Error When Editing Config)[2023-03-06]
您指定/位置两次。 你已经多次声明了gzip指令。 您没有关闭服务器块。 这是固定的: server { listen 80 default_server; listen [::]:80 default_server ipv6only=on; root /var/www/html; index index.html index.htm; server_name forums.creativethoughts.us www.forums.creativethoughts.us; locatio ...