Skip to content

os: bring leveldbstore options up to date - #215

Merged
liewegas merged 2 commits into
nextfrom
wip-leveldb-config
Apr 17, 2013
Merged

liewegas merged 2 commits into
nextfrom
wip-leveldb-config

Conversation

@gregsfortytwo

Copy link
Copy Markdown
Member

LevelDB has a lot of options which we don't implement right now. Add
an options struct to the LevelDBStore which users can access as they
wish in order to set values different from the defaults.
This will let us set various size values, as well as turning on
caching or bloom filter read optimizations.

Signed-off-by: Jim Schutt [email protected]
Signed-off-by: Greg Farnum [email protected]

LevelDB has a lot of options which we don't implement right now. Add
an options struct to the LevelDBStore which users can access as they
wish in order to set values different from the defaults.
This will let us set various size values, as well as turning on
caching or bloom filter read optimizations.

Signed-off-by: Jim Schutt <[email protected]>
Signed-off-by: Greg Farnum <[email protected]>
@liewegas

Copy link
Copy Markdown
Member

i would s/ldb/leveldb/ in the option names, but otherwise this looks good to me

Now that we can set up the LevelDB options internally, provide
config options on the OSD and the Monitor. We leave the OSD values
at the defaults for now as they're performance-sensitive, but we
set new values on the Monitor so that it can scale to large PGMaps.
(Previously there were issues with large PGMaps taking forever to write;
these changes to the use of compression and the default block and
write buffers counteract them.)

Since we pass these variables through, users who are interested in
doing so now can test and tune them more appropriately.

Reported-by: Jim Schutt <[email protected]>
Signed-off-by: Greg Farnum <[email protected]>
liewegas pushed a commit that referenced this pull request Apr 17, 2013
os: bring leveldbstore options up to date

Reviewed-by: Sage Weil <[email protected]>
@liewegas
liewegas merged commit f8183c9 into next Apr 17, 2013
@liewegas
liewegas deleted the wip-leveldb-config branch April 17, 2013 16:49
liewegas pushed a commit that referenced this pull request Dec 14, 2016
ceph-manager: fix ec_pool parameters
liewegas pushed a commit to liewegas/ceph that referenced this pull request Nov 5, 2021
andriytk pushed a commit to andriytk/cortx-rgw that referenced this pull request Jun 6, 2022
* rgw_sal_motr: [CORTX-30362] Add & Update User Stats Index Table (ceph#215)

* rgw_sal_motr: [CORTX-30362] Add user stats changes while user/bucket create & delete.

1. User stats index should be created per new user.
2. Add blank entry per bucket in owner user stats index on bucket creation.
3. Delete stats entry on bucket deletion.
4. Delete user stats index table on user deletion.

* rgw_sal_motr: [CORTX-30362] Implement read bucket stats

Bucket Stats are read from Bucket owner's user stats index table.

* rgw_sal_motr: [CORTX-30362] Update Bucket Stats on Object Put/Delete

Update the bucket stats on object create and delete operations.
Object overwrite & Versioned object put is handled.

* rgw_sal_motr: [CORTX-30362] Fix zero byte object issue & code refactoring.

Size of zero byte object and the default size of old object when it is
abscent is '0'. Thus there was no distinction between the two cases.
This was causing the issue, fixed the same by adding a new boolean var
for distinction.

* rgw_sal_motr: [CORTX-30362] Fix versioning bug in bucket stats

Old Object size of getting reduced while uploading a new object
for versioned object. Fixing the same.

Signed-off-by: Sumedh A. Kulkarni <[email protected]>

* User level stats counting for Motr SAL layer (ceph#226)

Signed-off-by: Diwakar92 <[email protected]>

Co-authored-by: Sumedh Anantrao Kulkarni <[email protected]>

* rgw_sal_motr: [CORTX-30363] Fix user-stats bug for user with no buckets (ceph#242)

* rgw_sal_motr: [CORTX-30363] Fix user-stats bug for user with no buckets

- next_query_by_name() crashes when zero entries are returned and so does
  list_buckets() and read_stats().
- Fixing the issue by returning 0 when no entries are present in the index.

Signed-off-by: Sumedh A. Kulkarni <[email protected]>

Co-authored-by: Diwakar92 <[email protected]>
tserong pushed a commit to tserong/ceph that referenced this pull request Sep 22, 2023
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants