Estou executando vários microsserviços no Kubernetes e preciso saber o IP real do cliente que enviou a solicitação ao nosso microsserviço de gateway para mostrar isso no painel da interface do usuário. Eu uso o Flannel como minha rede de sobreposição dentro do meu cluster.
Início
/
user-984821
Amir Soleimani Borujerdi's questions
Amir Soleimani Borujerdi
Asked:
2019-07-30 03:59:04 +0800 CST
Eu instalei o SonarQube versão 7.9.1 no CentOS 7 e o serviço configurado para iniciar com o usuário não root. O meu vm.max_map_count
está definido como 262144.
sysctl vm.max_map_count
vm.max_map_count = 262144
Por causa da versão do My SonarQube, configurei o JDK Wrapper.conf
para
wrapper.java.command=/usr/lib/jvm/java-11-openjdk/bin/java
Meu sonar.log é:
--> Wrapper Started as Daemon
Launching a JVM...
Wrapper (Version 3.2.3) http://wrapper.tanukisoftware.org
Copyright 1999-2006 Tanuki Software, Inc. All Rights Reserved.
2019.07.29 13:31:51 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2019.07.29 13:31:51 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2019.07.29 13:31:51 INFO app[][o.s.a.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch
2019.07.29 13:31:51 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
OpenJDK 64-Bit Server VM warning: Option UseConcMarkSweepGC was deprecated in version 9.0 and will likely be removed in a future release.
2019.07.29 13:31:51 INFO app[][o.e.p.PluginsService] no modules loaded
2019.07.29 13:31:51 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
ERROR: [1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
2019.07.29 13:31:56 WARN app[][o.s.a.p.AbstractManagedProcess] Process exited with exit value [es]: 78
2019.07.29 13:31:56 INFO app[][o.s.a.SchedulerImpl] Process[es] is stopped
2019.07.29 13:31:56 INFO app[][o.s.a.SchedulerImpl] SonarQube is stopped
<-- Wrapper Stopped
Meu es.log é:
2019.07.29 13:31:53 INFO es[][o.e.e.NodeEnvironment] using [1] data paths, mounts [[/ (rootfs)]], net usable_space [31.1gb], net total_space [49.9gb], types [rootfs]
2019.07.29 13:31:53 INFO es[][o.e.e.NodeEnvironment] heap size [494.9mb], compressed ordinary object pointers [true]
2019.07.29 13:31:53 INFO es[][o.e.n.Node] node name [sonarqube], node ID [XhVUvjLfTS-JwFuXmFVL4Q]
2019.07.29 13:31:53 INFO es[][o.e.n.Node] version[6.8.0], pid[60694], build[default/tar/65b6179/2019-05-15T20:06:13.172855Z], OS[Linux/3.10.0-957.21.3.el7.x86_64/amd64], JVM[Oracle Corporation/OpenJDK 64-Bit Server VM/11.0.4/11.0.4+11-LTS]
2019.07.29 13:31:53 INFO es[][o.e.n.Node] JVM arguments [-XX:+UseConcMarkSweepGC, -XX:CMSInitiatingOccupancyFraction=75, -XX:+UseCMSInitiatingOccupancyOnly, -Des.networkaddress.cache.ttl=60, -Des.networkaddress.cache.negative.ttl=10, -XX:+AlwaysPreTouch, -Xss1m, -Djava.awt.headless=true, -Dfile.encoding=UTF-8, -Djna.nosys=true, -XX:-OmitStackTraceInFastThrow, -Dio.netty.noUnsafe=true, -Dio.netty.noKeySetOptimization=true, -Dio.netty.recycler.maxCapacityPerThread=0, -Dlog4j.shutdownHookEnabled=false, -Dlog4j2.disable.jmx=true, -Djava.io.tmpdir=/opt/sonarqube/temp, -XX:ErrorFile=../logs/es_hs_err_pid%p.log, -Des.enforce.bootstrap.checks=true, -Xms512m, -Xmx512m, -XX:+HeapDumpOnOutOfMemoryError, -Des.path.home=/opt/sonarqube/elasticsearch, -Des.path.conf=/opt/sonarqube/temp/conf/es, -Des.distribution.flavor=default, -Des.distribution.type=tar]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [analysis-common]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [lang-painless]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [mapper-extras]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [parent-join]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [percolator]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [reindex]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [repository-url]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] loaded module [transport-netty4]
2019.07.29 13:31:53 INFO es[][o.e.p.PluginsService] no plugins loaded
2019.07.29 13:31:54 WARN es[][o.e.d.c.s.Settings] [http.enabled] setting was deprecated in Elasticsearch and will be removed in a future release! See the breaking changes documentation for the next major version.
2019.07.29 13:31:55 INFO es[][o.e.d.DiscoveryModule] using discovery type [zen] and host providers [settings]
2019.07.29 13:31:55 INFO es[][o.e.n.Node] initialized
2019.07.29 13:31:55 INFO es[][o.e.n.Node] starting ...
2019.07.29 13:31:56 INFO es[][o.e.t.TransportService] publish_address {127.0.0.1:9001}, bound_addresses {127.0.0.1:9001}
2019.07.29 13:31:56 INFO es[][o.e.b.BootstrapChecks] explicitly enforcing bootstrap checks
2019.07.29 13:31:56 ERROR es[][o.e.b.Bootstrap] node validation exception
[1] bootstrap checks failed
[1]: max file descriptors [4096] for elasticsearch process is too low, increase to at least [65535]
2019.07.29 13:31:56 INFO es[][o.e.n.Node] stopping ...
2019.07.29 13:31:56 INFO es[][o.e.n.Node] stopped
2019.07.29 13:31:56 INFO es[][o.e.n.Node] closing ...
2019.07.29 13:31:56 INFO es[][o.e.n.Node] closed
Amir Soleimani Borujerdi
Asked:
2019-07-24 20:22:23 +0800 CST
Amir Soleimani Borujerdi
Asked:
2019-07-18 03:36:08 +0800 CST
Instalei o SonarQube no CentOS e o serviço Sonar está ativo e em execução. No arquivo de configuração, a porta de uso está definida como 9000. Mas a interface do usuário do Sonar não pode ser acessada em localhost:9000
.
Este é o meu sonar.log:
2019.07.17 15:11:13 INFO app[][o.s.a.AppFileSystem] Cleaning or creating temp directory /opt/sonarqube/temp
2019.07.17 15:11:13 INFO app[][o.s.a.es.EsSettings] Elasticsearch listening on /127.0.0.1:9001
2019.07.17 15:11:13 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='es', ipcIndex=1, logFilenamePrefix=es]] from [/opt/sonarqube/elasticsearch]: /opt/sonarqube/elasticsearch/bin/elasticsearch -Epath.conf=/opt/sonarqube/temp/conf/es
2019.07.17 15:11:13 INFO app[][o.s.a.SchedulerImpl] Waiting for Elasticsearch to be up and running
2019.07.17 15:11:13 INFO app[][o.e.p.PluginsService] no modules loaded
2019.07.17 15:11:13 INFO app[][o.e.p.PluginsService] loaded plugin [org.elasticsearch.transport.Netty4Plugin]
2019.07.17 15:11:20 INFO app[][o.s.a.SchedulerImpl] Process[es] is up
2019.07.17 15:11:20 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='web', ipcIndex=2, logFilenamePrefix=web]] from [/opt/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.5.jar org.sonar.server.app.WebServer /opt/sonarqube/temp/sq-process5654348533781620634properties
2019.07.17 15:11:29 INFO app[][o.s.a.SchedulerImpl] Process[web] is up
2019.07.17 15:11:29 INFO app[][o.s.a.p.ProcessLauncherImpl] Launch process[[key='ce', ipcIndex=3, logFilenamePrefix=ce]] from [/opt/sonarqube]: /usr/lib/jvm/java-1.8.0-openjdk-1.8.0.212.b04-0.el7_6.x86_64/jre/bin/java -Djava.awt.headless=true -Dfile.encoding=UTF-8 -Djava.io.tmpdir=/opt/sonarqube/temp -Xmx512m -Xms128m -XX:+HeapDumpOnOutOfMemoryError -cp ./lib/common/*:/opt/sonarqube/lib/jdbc/postgresql/postgresql-42.2.5.jar org.sonar.ce.app.CeServer /opt/sonarqube/temp/sq-process1052960785390598020properties
2019.07.17 15:11:33 INFO app[][o.s.a.SchedulerImpl] Process[ce] is up
2019.07.17 15:11:33 INFO app[][o.s.a.SchedulerImpl] SonarQube is up