Skip to content

Commit 204a857

Browse files
committed
include summary of StoragePartition in docstring
1 parent d9755d2 commit 204a857

File tree

1 file changed

+24
-0
lines changed

1 file changed

+24
-0
lines changed

src/cbapi/response/models.py

Lines changed: 24 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -86,6 +86,30 @@ def results(self):
8686

8787

8888
class StoragePartition(NewBaseModel):
89+
"""
90+
The StoragePartition model object allows you to load and unload Time Paritioning "cores" into the Cb Response server
91+
through the API. This model is only available in Cb Response server versions 6.0 and above.
92+
Cb Response will roll-over data into new Solr partition periodically (based on configuration) in order to improve
93+
performance and data retention.
94+
95+
Partitions can be:
96+
97+
Hot: There is always exactly one hot partition. It is called "writer" (configurable).
98+
All new data goes to the writer partition. Hot partition can be searched.
99+
100+
Warm: Warm partition is any mounted partition that is not currently written to. Warm partitions can be searched.
101+
Warm partition are named as "cbevents_<timestmp>" where timestamp is time when partition was created in format
102+
"YYYY_MM_DD_hhmm". Timestamp can be followed by suffix in format "_<suffix>" which will be ignored and can be used
103+
to specify additional partition information. Here are examples of valid partition names:
104+
cbevents_2016_06_11_1351
105+
cbevents_2016_06_11_1351_foo
106+
cbevents_2016_06_11_1351_this_is_partition_from_old_server
107+
108+
Cold: Cold partition is any partition that is not mounted to Solr, but exists only on disk. Cold partitions can not
109+
be searched, but can be mounted (converted into warm partitions)
110+
111+
Deleted: Deleted partition is removed from disk and can no longer be looked up or restored
112+
"""
89113
urlobject = "/api/v1/storage/events/partition"
90114
primary_key = "name"
91115

0 commit comments

Comments
 (0)