Hi All, I am facing throttling issue with Flink (1...
# troubleshooting
r
Hi All, I am facing throttling issue with Flink (1.16) S3 state… tried to set up entropy, but
_entropy_
string is not getting replaced with a random one..
Copy code
s3.entropy.key: _entropy_
s3.entropy.length: 4
state.checkpoints.dir: s3p://flink-bucket/_entropy_/
state.backend: rocksdb
state.backend.async: true
high-availability: zookeeper
high-availability.storageDir: s3://flink-staging/ha
But the actual path in S3 is
s3://flink-bucket/job-id/chk-14/
- I can only see
_metadata
file inside this folder Plugin -
flink-s3-fs-presto-1.16.1.jar
Can someone please tell what is missing i am expecting to see something like this in S3 - ``s3://flink-bucket/random 4 digit/job-id/chk-14/`
a
@raghav tandon - FWIK entropy is only enabled for datafiles and not the metadata file. Are you seeing random 4 digit folders being created under your s3 bucket?
https://nightlies.apache.org/flink/flink-docs-release-1.13/docs/deployment/filesystems/s3/#entropy-injection-for-s3-file-systems
The Flink runtime currently passes the option to inject entropy only to checkpoint data files. All other files, including checkpoint metadata and external URI, do not inject entropy to keep checkpoint URIs predictable.
r
@anuj sharma Yes thanks for clarification I got this as i was testing in staging env, there was not enough state to make data files and everything was going to
_metadata
file only and no data files were created
state.storage.fs.memory-threshold
After fixing the state part -
I can see the random folders now
(entropy is working fine) Along with that there is directory
_entropy_
as well which has
shared
and
taskowned
and
chk-XXX
files as well (all empty folders) <- why is this happening? And also a directory named
checkpoints
which has
chk-XXX
folders and there i can see
_metadata
file (This is expected) Another unexpected behaviour is it is not deleting any random files from S3, as I have retained-checkpoints=2 only…
So, will these <random> folders grow infinitely? If i put S3 lifecycle hook then also i am not sure if checkpoint is internally pointing to it
Its all sorted now, actually plugin folder was having hadoop lib as well and not defining
s3p
was causing this behaviour… Thanks for all the answers