A.J. Beamon
2b6f349649
Better API version handling for fdbcli tenant commands
2022-07-22 15:37:48 -07:00
Jon Fu
43c7146d86
Merge branch 'feature-tenant-groups' of github.com:sfc-gh-ajbeamon/foundationdb into jfu-tenant-rename-special-keys
2022-07-22 15:21:13 -07:00
A.J. Beamon
b308aa6604
Merge branch 'feature-tenant-groups' into feature-metacluster
2022-07-22 11:38:23 -07:00
A.J. Beamon
237081905d
Add support for tenant groups
2022-07-22 09:27:31 -07:00
A.J. Beamon
17146c484b
Use key-backed types for tenants. Add a tenant state field that will be used in upcoming work. Some other tenant related refactoring.
2022-07-21 20:33:28 -07:00
A.J. Beamon
3e1763e7ac
Merge branch 'main' into feature-metacluster
2022-07-21 14:48:53 -07:00
A.J. Beamon
410f27412b
Merge pull request #7620 from sfc-gh-ajbeamon/make-tuple
...
Add a Tuple::makeTuple function to easily construct a tuple
2022-07-20 17:09:10 -07:00
A.J. Beamon
279296c29f
Merge branch 'tenant-metadata-change' into feature-metacluster
...
# Conflicts:
# fdbclient/SystemData.cpp
# fdbclient/Tenant.cpp
# fdbclient/include/fdbclient/SystemData.h
# fdbclient/include/fdbclient/Tenant.h
# fdbclient/include/fdbclient/TenantManagement.actor.h
# fdbserver/TenantCache.actor.cpp
# fdbserver/storageserver.actor.cpp
# fdbserver/workloads/TenantManagementWorkload.actor.cpp
2022-07-20 09:18:27 -07:00
A.J. Beamon
190ad8c7e9
Convert existing tuple usages to use Tuple::makeTuple()
2022-07-19 13:45:59 -07:00
Markus Pilman
1de37afd52
Make TEST macros C++ only ( #7558 )
...
* proof of concept
* use code-probe instead of test
* code probe working on gcc
* code probe implemented
* renamed TestProbe to CodeProbe
* fixed refactoring typo
* support filtered output
* print probes at end of simulation
* fix missed probes print
* fix deduplication
* Fix refactoring issues
* revert bad refactor
* make sure file paths are relative
* fix more wrong refactor changes
2022-07-19 13:15:51 -07:00
A.J. Beamon
1b81e72604
Add a Tuple::makeTuple function to easily construct a tuple. Update Tuple to allow all types to be passed via .append() so they can be used with makeTuple.
2022-07-19 11:50:58 -07:00
A.J. Beamon
c7c7bd5f17
Undo change to mark tenant modes non-experimental. Other minor cleanup.
2022-07-19 09:18:53 -07:00
A.J. Beamon
8f77048e95
Add the ability to configure tenant groups in a metacluster
2022-07-18 11:24:49 -07:00
A.J. Beamon
860d3843cc
Merge remote-tracking branch 'origin/feature-tenant-groups' into feature-metacluster
2022-07-16 19:33:26 -07:00
A.J. Beamon
c08592368f
Add support for tenant groups
2022-07-15 21:18:41 -07:00
A.J. Beamon
0fe6f6ad36
Merge remote-tracking branch 'origin/update-prefix-encoding-in-tenant-metadata-json' into feature-metacluster
...
# Conflicts:
# bindings/python/tests/fdbcli_tests.py
# fdbcli/TenantCommands.actor.cpp
# fdbclient/include/fdbclient/TenantManagement.actor.h
# fdbclient/include/fdbclient/TenantSpecialKeys.actor.h
# fdbserver/workloads/TenantManagementWorkload.actor.cpp
2022-07-14 14:32:29 -07:00
Jon Fu
7f3b51f31a
initial commit to introduce tenant renaming to special keys
2022-07-13 15:59:52 -07:00
A.J. Beamon
cb499fa5db
Merge branch 'main' into feature-metacluster
2022-07-13 15:28:34 -07:00
A.J. Beamon
91ccdbcb03
Use a more standard encoding in the JSON metadata reported for tenants.
2022-07-13 15:22:19 -07:00
A.J. Beamon
a3f970cf3a
Parse integer options in fdbcli rather than passing the bytes unparsed. This allows specifing the string "1" instead of "\x01\x00\x00\x00\x00\x00\x00\x00".
2022-07-11 16:39:59 -07:00
A.J. Beamon
712f40b727
Add support for tenant groups
2022-07-08 15:59:25 -07:00
A.J. Beamon
b9cc5389b1
Undo some changes that aren't needed
2022-07-07 14:48:36 -07:00
A.J. Beamon
a32cc5218c
Fix some merge issues
2022-07-07 11:55:31 -07:00
A.J. Beamon
1519f24f77
Merge branch 'main' into feature-metacluster
2022-07-07 09:35:40 -07:00
Jon Fu
df1f108b78
Merge branch 'main' of github.com:apple/foundationdb into jfu-tenant-rename
2022-07-06 14:10:22 -07:00
A.J. Beamon
aea4d802c6
Merge branch 'main' into feature-metacluster
2022-06-30 15:08:09 -07:00
A.J. Beamon
2f67328a0c
Update the tenant special keys submodule to support multiple sub-ranges. This will enable future work that allows configuring tenants at the same time as creating them.
2022-06-30 15:03:37 -07:00
Jon Fu
5e7bb0aa21
Merge branch 'main' of github.com:apple/foundationdb into jfu-tenant-rename
2022-06-29 13:20:19 -07:00
Trevor Clinkenbeard
db769667ae
Merge pull request #7112 from sfc-gh-tclinkenbeard/global-tag-throttling3
...
Create Global Tag Throttler
2022-06-29 10:06:00 -07:00
sfc-gh-tclinkenbeard
2134fa9a0c
Merge remote-tracking branch 'origin/main' into global-tag-throttling3
2022-06-28 19:51:41 -07:00
A.J. Beamon
df90d87903
Add missing return statement
2022-06-28 16:03:08 -07:00
A.J. Beamon
e1a93988ef
Merge branch 'main' into feature-metacluster
2022-06-28 14:58:07 -07:00
Jon Fu
5fee5e1a73
add renameTenant back to TenantAPI after rebase
2022-06-28 11:54:03 -07:00
Jon Fu
869c6fcac5
reintroduce renameTenantCommandActor as a pass-through function
2022-06-28 11:35:40 -07:00
Jon Fu
904ac358ce
call directly into management api and remove extra function
2022-06-28 11:35:38 -07:00
Jon Fu
5f4f95db4d
fix unreachable code
2022-06-28 11:34:54 -07:00
Jon Fu
ddfdbdcb09
initial commit introducing renameTenant function
2022-06-28 11:34:44 -07:00
sfc-gh-tclinkenbeard
086e4bff06
Merge remote-tracking branch 'origin/main' into global-tag-throttling3
2022-06-28 10:18:13 -07:00
Markus Pilman
fc2f695b15
Merge remote-tracking branch 'origin/main' into features/cmake-refactor-dirs
2022-06-28 10:41:07 -06:00
A.J. Beamon
fcd91f676a
Merge pull request #7436 from sfc-gh-ajbeamon/tenant-reorganization
...
Tenant code refactoring
2022-06-28 09:16:19 -07:00
Markus Pilman
1bdbd89839
Merge remote-tracking branch 'origin/main' into features/cmake-refactor-dirs
2022-06-28 08:52:03 -06:00
Markus Pilman
4ac236eeba
fdbcli compiling
2022-06-27 19:20:18 -06:00
Markus Pilman
03d913a1de
Flow compiling
2022-06-27 17:05:55 -06:00
A.J. Beamon
f990fba44d
Add support for getting tenant metadata as a JSON document.
2022-06-27 12:34:40 -07:00
A.J. Beamon
4bafe77889
Some refactoring of tenant code:
...
* extract tenant management into its own file and namespace
* rename the tenant management workload source file
* extract tenant special keys functions to a separate file
* extract some helper functions to GenericTransactionHelper.h
* convert StringRef -> TenantNameRef
* move some TenantMapEntry implementation into the cpp file
* add some helper functions to decode/encode a tenant mode
2022-06-27 12:32:49 -07:00
A.J. Beamon
eccf244ba6
Add an index that allows us to allocate tenants from the non-full cluster with the most tenants already assigned to it.
2022-06-27 12:28:55 -07:00
A.J. Beamon
4b69723a2f
Cleanup metadata associated with a cluster when force removing it. Move some metacluster metadata into the normal key-space. Cleanup some todos.
2022-06-24 14:55:57 -07:00
Markus Pilman
d35445a868
enforce include modularization in cmake
2022-06-23 14:37:35 -06:00
A.J. Beamon
9f3819752f
Change the command to create a metacluster from using 'configure tenant_mode=management' to 'metacluster create <NAME>'. Distribute this name to all processes in a metacluster. Eliminate the tenant mode entirely from metacluster clusters, instead relying on a metacluster registration key.
2022-06-22 12:15:43 -07:00
A.J. Beamon
96fad987eb
Add new command to get total metacluster capacity. Fix bug where removing a data cluster could make it impossible to create new tenants on it. Add knobs for max data clusters and max tenants.
2022-06-17 10:42:03 -07:00