Bhavya
08/14/2024, 4:41 PMWallace Peng
08/14/2024, 10:05 PMSimon
08/16/2024, 8:10 AM/etc/auth/token
. However, regardless of the token I specify during deployment, the function always seems to end up using the admin token.
Here’s how I’m creating the function:
/bin/pulsar-admin \
--admin-url $ADMIN_URL \
--auth-params $TOKEN \ # <-- No matter which token I define here, the admin token always ends up in the function instance
--auth-plugin org.apache.pulsar.client.impl.auth.AuthenticationToken functions create \
--function-config-file $CONFIG_FILE \
--go $BIN_PATH \
--name $FUNCTION_NAME \
--parallelism $PARALLELISM \
--cpu $CPU \
--ram $RAM \
--user-config "$USER_CONFIG_JSON"
I don't want the function to have full admin rights, does anyone know how to specify which token should be used by the Pulsar function?
Thanks in advance for your help!Viktor Vsk
08/16/2024, 8:11 AMMartin Koppehel
08/16/2024, 11:27 AMcreateProducer
and I'm receiving an Authorization failed
error where in the broker logs it says:
DEBUG org.apache.pulsar.broker.authorization.AuthorizationService - Topic operation LOOKUP on topic <non-persistent://tenant/ns/topic> is NOT allowed: role = system:serviceaccount:myns:mysa
How do I grant this Lookup permission?Delta Gamma
08/16/2024, 4:31 PMFelipe
08/16/2024, 5:35 PMCaused by: org.apache.pulsar.broker.service.BrokerServiceException$TopicPoliciesCacheNotInitException: Topic policies cache have not init.
Usually, restarting the brokers "resolves" the issue.
Did any of you ever face the same problem?
Thanks!Delta Gamma
08/17/2024, 1:09 PMViktor Vsk
08/17/2024, 9:20 PMPulsarStandaloneStarter
, topic stats says bytesInCounter is around 80 GB and slowly grows.
What is this process called? Is this compaction? Where should I learn more about it, how to optimize it etc?
Thanks in advanceSiNan Liu
08/18/2024, 1:19 PMKhemendra
08/19/2024, 12:45 PMKrishna
08/19/2024, 10:35 PMHaydar
08/20/2024, 8:59 AMvineet_sharma
08/20/2024, 7:02 PMojoxdan
08/20/2024, 8:45 PMbin/pulsar-admin namespaces set-dispatch-rate public/default --msg-dispatch-rate 90 --dispatch-rate-period 1
I also tried setting the pulish rate to 90 but that as well had no effect, please what more can I do to control this
@David KDavid K
08/20/2024, 9:23 PMDavid K
08/20/2024, 9:25 PMHaydar
08/21/2024, 6:30 AMSubscriptionType.SHARED
, and each message would include a client ID in the header. Only the client whose ID matches the one in the message header would process the message.
Questions:
1. Which of these strategies is better for managing 650,000 clients?
2. If Pulsar can handle this load, what kind of cluster setup (e.g., number of brokers, hardware specs) would be sufficient to support this system efficiently?
3. Are there any additional considerations or best practices I should keep in mind when designing a Pulsar-based system with this many clients?Lari Hotari
08/21/2024, 4:11 PMKhemendra
08/22/2024, 5:49 PMDanila
08/23/2024, 1:00 PMSoumya Ghosh
08/23/2024, 5:26 PMMuni Chada
08/23/2024, 6:33 PMDelta Gamma
08/23/2024, 7:02 PMDelta Gamma
08/23/2024, 11:56 PM2024-08-23T23:54:17,817+0000 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produc
ed: 7911 msg --- 791.1 msg/s --- 6.2 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 10.466
ms - med: 9.773 - 95pct: 19.366 - 99pct: 25.210 - 99.9pct: 29.276 - 99.99pct: 34.256 - Max: 35.387
2024-08-23T235427,909+0000 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produc
ed: 17975 msg --- 999.0 msg/s --- 7.8 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 12.479
ms - med: 9.584 - 95pct: 22.151 - 99pct: 100.745 - 99.9pct: 190.713 - 99.99pct: 197.180 - Max: 197.638
2024-08-23T235437,935+0000 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produc
ed: 27901 msg --- 983.9 msg/s --- 7.7 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 59.449
ms - med: 19.617 - 95pct: 186.689 - 99pct: 210.741 - 99.9pct: 239.322 - 99.99pct: 246.021 - Max: 247.015
2024-08-23T235447,967+0000 [main] INFO org.apache.pulsar.testclient.PerformanceProducer - Throughput produc
ed: 31708 msg --- 379.9 msg/s --- 3.0 Mbit/s --- failure 0.0 msg/s --- Latency: mean: 2203.781
ms - med: 2081.271 - 95pct: 6174.047 - 99pct: 6411.775 - 99.9pct: 6445.503 - 99.99pct: 6449.407 - Max: 6449.4 ?gaecfov
08/24/2024, 2:48 AMJeffrey Tan
08/24/2024, 7:16 AM{ userId: "1234" }
And I able to query using Trino
SELECT userId FROM <topic-name>
And then I add a new property to the schema become:-
{ userId: "1234", userName: "Jeff" }
And try to query with:-
SELECT userId, userName FROM <topic-name>
It returns this error:-
Query 20240823_093959_00006_bcmxz failed: Not a valid schema field: test
And I realise starting from 3.2.x thats no more Trino for us to use? Anyone know why and what are the alternative toolssagar
08/26/2024, 7:05 AMHaydar
08/26/2024, 11:36 AM