mirror of
https://github.com/hanzoai/bootnode.git
synced 2026-09-30 20:46:32 +00:00
shrink casper node to see if it works
This commit is contained in:
+2
-2
@@ -310,14 +310,14 @@ class Gcloud(object):
|
||||
"autoscaling": {
|
||||
"enabled": True,
|
||||
"minNodeCount": 1,
|
||||
"maxNodeCount": 10,
|
||||
"maxNodeCount": 100,
|
||||
},
|
||||
"management": {
|
||||
"autoRepair": True,
|
||||
"autoUpgrade": True,
|
||||
},
|
||||
"config": {
|
||||
"machineType": "n1-standard-4",
|
||||
"machineType": "n1-standard-8",
|
||||
"diskSizeGb": 100,
|
||||
"diskType": "pd-ssd",
|
||||
"minCpuPlatform": "Intel Skylake",
|
||||
|
||||
+12
-5
@@ -105,10 +105,12 @@ class VolumeMount(Dict):
|
||||
|
||||
|
||||
class Volume(Dict):
|
||||
def __init__(self, name, gcePersistentDisk):
|
||||
Dict.__init__(self, name=name, gcePersistentDisk=gcePersistentDisk)
|
||||
def __init__(self, name, gcePersistentDisk, emptyDir = None):
|
||||
Dict.__init__(self, name=name, gcePersistentDisk=gcePersistentDisk,
|
||||
emptyDir=emptyDir)
|
||||
self.name = name
|
||||
self.gcePersistentDisk = gcePersistentDisk
|
||||
self.emptyDir = emptyDir
|
||||
|
||||
|
||||
class GcePersistentDisk(Dict):
|
||||
@@ -117,6 +119,11 @@ class GcePersistentDisk(Dict):
|
||||
self.pdName = pdName
|
||||
self.fsType = fsType
|
||||
|
||||
class EmptyDir(Dict):
|
||||
def __init__(self, medium='', sizeLimit='10gb'):
|
||||
Dict.__init__(self, medium=medium, sizeLimit=sizeLimit)
|
||||
self.medium = medium
|
||||
self.sizeLimit = sizeLimit
|
||||
|
||||
class Backend(Dict):
|
||||
def __init__(self, serviceName, servicePort):
|
||||
@@ -554,13 +561,13 @@ class Casper(Blockchain):
|
||||
if network is 'mainnet':
|
||||
size = 'medium'
|
||||
elif network is 'testnet':
|
||||
size = 'medium'
|
||||
size = 'small'
|
||||
else:
|
||||
size = 'small'
|
||||
|
||||
if size == 'small':
|
||||
requests = Requests(cpu='2', memory='1Gi')
|
||||
limits = Limits(cpu='2', memory='1536Mi')
|
||||
requests = Requests(cpu='1', memory='1Gi')
|
||||
limits = Limits(cpu='1', memory='1Gi')
|
||||
|
||||
elif size == 'medium':
|
||||
requests = Requests(cpu='2', memory='2Gi')
|
||||
|
||||
@@ -25,8 +25,10 @@ users:
|
||||
user:
|
||||
auth-provider:
|
||||
config:
|
||||
access-token: ya29.Glz7Bik_X3n78elrHoceCNCEWnOUC7H7jdIyMzdZE6XU3r2sJDW8lOV1HZx7EGDk426JsUNVpYDhdbuoPDgo2T5SgadJqEoYVQ23IYfi7e6A7ylbwq9-SBBjyxsdLQ
|
||||
cmd-args: config config-helper --format=json
|
||||
cmd-path: /usr/local/Caskroom/google-cloud-sdk/latest/google-cloud-sdk/bin/gcloud
|
||||
expiry: 2019-04-30T18:55:43Z
|
||||
expiry-key: '{.credential.token_expiry}'
|
||||
token-key: '{.credential.access_token}'
|
||||
name: gcp
|
||||
|
||||
Reference in New Issue
Block a user