Can you please see below why a simple publish take 9s to finish?
Pulsar is deployed on a two cores VPS, and I run it with `pulsar-daemon start
standalone` mode.
Thanks.
$ time bin/pulsar-client produce my-topic --messages "hello-pullsar fifth"
15:06:12.815 [pulsar-client-io-1-1] INFO
org.apache.pulsar.client.impl.ConnectionPool - [[id: 0x90192576,
L:/127.0.0.1:45148 - R:localhost/127.0.0.1:6650]] Connected to server
15:06:13.385 [pulsar-client-io-1-1] INFO
org.apache.pulsar.client.impl.ProducerStatsRecorderImpl - Starting Pulsar
producer perf with config: {
"topicName" : "my-topic",
"producerName" : null,
"sendTimeoutMs" : 30000,
"blockIfQueueFull" : false,
"maxPendingMessages" : 1000,
"maxPendingMessagesAcrossPartitions" : 50000,
"messageRoutingMode" : "RoundRobinPartition",
"hashingScheme" : "JavaStringHash",
"cryptoFailureAction" : "FAIL",
"batchingMaxPublishDelayMicros" : 1000,
"batchingPartitionSwitchFrequencyByPublishDelay" : 10,
"batchingMaxMessages" : 1000,
"batchingMaxBytes" : 131072,
"batchingEnabled" : true,
"chunkingEnabled" : false,
"compressionType" : "NONE",
"initialSequenceId" : null,
"autoUpdatePartitions" : true,
"autoUpdatePartitionsIntervalSeconds" : 60,
"multiSchema" : true,
"properties" : { }
}
15:06:13.411 [pulsar-client-io-1-1] INFO
org.apache.pulsar.client.impl.ProducerStatsRecorderImpl - Pulsar client config:
{
"serviceUrl" : "pulsar://localhost:6650/",
"authPluginClassName" : null,
"operationTimeoutMs" : 30000,
"statsIntervalSeconds" : 60,
"numIoThreads" : 1,
"numListenerThreads" : 1,
"connectionsPerBroker" : 1,
"useTcpNoDelay" : true,
"useTls" : false,
"tlsTrustCertsFilePath" : "",
"tlsAllowInsecureConnection" : false,
"tlsHostnameVerificationEnable" : false,
"concurrentLookupRequest" : 5000,
"maxLookupRequest" : 50000,
"maxLookupRedirects" : 20,
"maxNumberOfRejectedRequestPerConnection" : 50,
"keepAliveIntervalSeconds" : 30,
"connectionTimeoutMs" : 10000,
"requestTimeoutMs" : 60000,
"initialBackoffIntervalNanos" : 100000000,
"maxBackoffIntervalNanos" : 60000000000,
"listenerName" : null,
"useKeyStoreTls" : false,
"sslProvider" : null,
"tlsTrustStoreType" : "JKS",
"tlsTrustStorePath" : "",
"tlsTrustStorePassword" : "",
"tlsCiphers" : [ ],
"tlsProtocols" : [ ],
"proxyServiceUrl" : null,
"proxyProtocol" : null,
"enableTransaction" : false
}
15:06:13.485 [pulsar-client-io-1-1] INFO
org.apache.pulsar.client.impl.ProducerImpl - [my-topic] [null] Creating
producer on cnx [id: 0x90192576, L:/127.0.0.1:45148 -
R:localhost/127.0.0.1:6650]
15:06:13.576 [pulsar-client-io-1-1] INFO
org.apache.pulsar.client.impl.ProducerImpl - [my-topic] [standalone-1-4]
Created producer on cnx [id: 0x90192576, L:/127.0.0.1:45148 -
R:localhost/127.0.0.1:6650]
15:06:13.919 [pulsar-client-io-1-1] INFO
com.scurrilous.circe.checksum.Crc32cIntChecksum - SSE4.2 CRC32C provider
initialized
15:06:14.002 [main] INFO org.apache.pulsar.client.impl.PulsarClientImpl -
Client closing. URL: pulsar://localhost:6650/
15:06:14.054 [main] INFO org.apache.pulsar.client.impl.ProducerImpl -
[my-topic] [standalone-1-4] Closed Producer
15:06:14.090 [pulsar-client-io-1-1] INFO
org.apache.pulsar.client.impl.ClientCnx - [id: 0x90192576, L:/127.0.0.1:45148 !
R:localhost/127.0.0.1:6650] Disconnected
15:06:14.164 [main] INFO org.apache.pulsar.client.cli.PulsarClientTool - 1
messages successfully produced
real 0m9.011s
user 0m10.884s
sys 0m1.172s