]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
rgw/lua: Example read/write of StorageClass field 43626/head
authorCurt Bruns <curt.e.bruns@gmail.com>
Thu, 21 Oct 2021 21:53:31 +0000 (17:53 -0400)
committerCurt Bruns <curt.e.bruns@gmail.com>
Mon, 1 Nov 2021 23:45:38 +0000 (19:45 -0400)
commitbbd7f0dbafdc96899d33252443d168e2aecc697b
tree3b702b6b3c4c74310eb13d2478ae06dd934e7b51
parent38b6a8e8d0614a573a0c285ceaccdb6880cad77b
rgw/lua: Example read/write of StorageClass field

Admins may setup different pools for RGW objects and
having the StorageClass field mutable allows the steering
of RGW objects to the proper pools.  This Lua example shows
how a user can modify the StorageClass header when
it is empty on a PUT request and steer objects to different
pools based on size (Request.ContentLength).

Signed-off-by: Curt Bruns <curt.e.bruns@gmail.com>
examples/lua/storage_class.lua [new file with mode: 0644]
examples/lua/storage_class.md [new file with mode: 0644]