captainzmc commented on PR #3286:
URL: https://github.com/apache/ozone/pull/3286#issuecomment-1096444869

   > * Open keys, which are owned by the system, are not counted against users' 
quotas.
   
   Thank @errose28  join the discuss.  As @sodonnel  said, To prevent users 
writing large keys to DDOS the cluster, we still need to calculate usedBytes 
while allocate block.   In this case, we can't treat Open Keys as a system, we 
need to count it into bukcet's usedBytes in real time. So I think the previous 
implementation of Ozone quota usedBytes may not need to change. 
   
   @sodonnel  has some suggestions for us to. For example, when we delete a 
bucket, all the Open keys that need to be synchronized deleted. Maybe we can 
use the Open Key Cleanup service to do this. 
   
   The problem with writing small files requires at least 3* blocks. I see HDFS 
also requires at least 3* blocks. So we can be consistent with HDFS and ignore 
this problem.
   
   
   


-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: [email protected]

For queries about this service, please contact Infrastructure at:
[email protected]


---------------------------------------------------------------------
To unsubscribe, e-mail: [email protected]
For additional commands, e-mail: [email protected]

Reply via email to