最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

azure - Blobfuse content in mounted folder not changing when file is overwritten - Stack Overflow

programmeradmin2浏览0评论

We have a daily export of some data, that generates a json file, writes it to a storage ccount/container which is then mounted into a linux (Ubuntu) VM in Azure using blobfuse v2.

The folder which contains the file is updated, but the file is not.

azureuser@myvm:/datadrive/blobstorage$ ls -lah
total o
drwxr-x---2 root root 4.0K Mar 19 22:30 INGEST
drwxr-x--- 2 root root 4.0K Mar 19 15:21 export 
azureuser@myvm:/datadrive/blobstorage/INGEST$ ls -lah
total 0
-rw-r----- 1 root root 4.2M Mar 19 14:44 fpl.json
- rw-r-----1 root root 33 Mar 19 15:32 testcontent.txt

Note that the tiemstamp on the INGEST folder is newer, then the timestamps of the files inside the INGEST folder. The files were updated at 22:30.

My fstab

`blobfuse2 /datadrive/blobstorage fuse defaults,_netdev,--config-file=/datadrive/blobconfig.yml,allow_other 0 0`

My blobconfig.yml

logging:
  type: syslog
  level: log_debug
  file-path: /var/log/blobfuse.log

components:
- libfuse
- file_cache
- attr_cache
- azstorage

libfuse:
attribute-expiration-sec: 120
entry-expiration-sec: 120
negative-entry-expiration-sec: 240

attr_cache:
timeout-sec: 120

file_cache:
  path: /datadrive/temp
  allow-non-empty-temp: true
  cleanup-on-start: true
  timeout-sec: 120
  max-size-mb: 4096
  file-cache-timeout: 1

azstorage:
  type: adls
  account-name: myaccountname
  account-key: mykey
  mode: key
  container: mycontainer
  endpoint: /

I have already tried removing the caching, setting the caching values to 1 second.

发布评论

评论列表(0)

  1. 暂无评论