File tree Expand file tree Collapse file tree 2 files changed +4
-4
lines changed
rust_canisters/canister_creator/test Expand file tree Collapse file tree 2 files changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -12,15 +12,15 @@ const TIB: u64 = GIB * 1024;
12
12
/// This specifies the threshold in bytes at which the subnet memory usage is
13
13
/// considered to be high. If this value is greater or equal to the subnet
14
14
/// capacity, then the subnet is never considered to have high usage.
15
- const SUBNET_MEMORY_THRESHOLD : NumBytes = NumBytes :: new ( 450 * GIB ) ;
15
+ const SUBNET_MEMORY_THRESHOLD : NumBytes = NumBytes :: new ( 750 * GIB ) ;
16
16
17
17
/// This is the upper limit on how much logical storage canisters can request to
18
18
/// be store on a given subnet.
19
19
///
20
20
/// Logical storage is the amount of storage being used from the point of view
21
21
/// of the canister. The actual storage used by the nodes can be higher as the
22
22
/// IC protocol requires storing copies of the canister state.
23
- const SUBNET_MEMORY_CAPACITY : NumBytes = NumBytes :: new ( TIB ) ;
23
+ const SUBNET_MEMORY_CAPACITY : NumBytes = NumBytes :: new ( 2 * TIB ) ;
24
24
25
25
/// This is the upper limit on how much memory can be used by all guaranteed
26
26
/// response canister messages on a given subnet.
Original file line number Diff line number Diff line change @@ -102,10 +102,10 @@ fn install_code_works() {
102
102
assert_eq ! ( result, WasmResult :: Reply ( "null" . as_bytes( ) . to_vec( ) ) ) ;
103
103
104
104
// Assert there are 1_001 canisters running with the memory usage below the
105
- // subnet storage capacity, which is currently 1 TiB
105
+ // subnet storage capacity, which is currently 2 TiB
106
106
assert_eq ! ( env. num_running_canisters( ) , 1_001 ) ;
107
107
assert ! (
108
- env. canister_memory_usage_bytes( ) < 1024 * 1024 * 1024 * 1024 ,
108
+ env. canister_memory_usage_bytes( ) < 2 * 1024 * 1024 * 1024 * 1024 ,
109
109
"Actual: {} bytes" ,
110
110
env. canister_memory_usage_bytes( )
111
111
) ;
You can’t perform that action at this time.
0 commit comments