2.2.2. Create a new VPC and deploy mijin

This chapter shows how to deploy mijin Catapult(v.2) on a new network (VPC).
In the commercial version, you can flexibly build a network that fits your environment by changing parameters.
creation-day:

Aug. 1, 2022

update date:

2025/6/10

2.2.2.1. List of services to be built on AWS by deployment

  • Amazon EC2 (APINode x 2 PEERNode x 3~)

  • Amazon EBS

  • Elastic Load Balancing

  • Amazon Route53

  • Amazon VPC(Nat Gateway)

  • parameter store

Note

Elastic Load Balancing may not be created in some cases, depending on the parameter settings specified during deployment.

2.2.2.2. View Network

In the commercial version, it is possible to build a network that fits your environment by changing parameters. An example pattern is shown below.

ロードバランサーとノード配置パターン

No

load balancer

API node placement

PEER node placement

figure

1

** Yes / Open NW**
UseLoadBalancer: Yes
LoadBalancerType: external
公開NW
ApiPlacementNetwork: Public

Private NW

../../_images/view_network_1_1.png

2

あり / 非公開NW
UseLoadBalancer: Yes
LoadBalancerType: internal
Private NW
ApiPlacementNetwork: Private

Private NW

../../_images/view_network_1_2.png

3

No
UseLoadBalancer: No
LoadBalancerType は設定無効
公開NW
ApiPlacementNetwork: Public

Private NW

../../_images/view_network_1_3.png

4

No
UseLoadBalancer: No
LoadBalancerType は設定無効
Private NW
ApiPlacementNetwork: Private

Private NW

../../_images/view_network_1_4.png

Note

The commercial version cannot be configured with a single AZ to achieve high availability, but only with multiple AZs.
Note that you will always need two public networks and two private networks.
Deployment is single region, but can be deployed in each of the world’s 20 regions.

2.2.2.3. Step.1

../../_images/step1_1.png

you need to subscribe to use the AMI of mijin Catapult Enterprise. Please press the button in the red frame.

2.2.2.4. Step.2

../../_images/step2_1.png

mijin Catapult Enterprise AMI, please approve its use.

2.2.2.5. Step.3

../../_images/step3_1.png

To start from Config, click on the text in the red box.

2.2.2.6. Step.4

../../_images/step4_1_new.png

Select the template to be used in the red frame in (1). In this example, ‘mijin Catapult Enterprise on New VPC CFT’ is selected to create a new network.

Specify the version of mijin in the red frame in ②

Specify the region where mijin will be deployed

Click ‘Continue to Launch’ in the red frame of ④.

2.2.2.7. Step.5

../../_images/step5_1_new.png

In the red frame in (1), specify the service for which mijin is to be built. In this case, ‘Launch CloudFormation’ is specified. Click ‘Launch’ in the red frame in ②.

2.2.2.8. Step.6

../../_images/step6_1.png

Without editing anything in particular, press ‘Next’ in the red frame.

2.2.2.9. Step.7

../../_images/step7_1_new_1.png ../../_images/step7_1_new_2.png

Enter parameters.

mijin デプロイ用パラメータ一覧(簡易版)

No

パラメータ

Description

Recommended value

Stack Name

Name of this stack

Service Name

全リソースの冠名として利用されるサービス名

Availability Zone1

Availability zone to be used (Multi-AZ configuration)

Availability Zone2

Specify an AZ different from AZ1 (Multi-AZ configuration)

Public Location IP

Allowed IP address for API connection (/24, etc. is also acceptable)

例: XX.XX.XX.XX/32

Default UnixUser

Standard Unix user for EC2

ubuntu

KeyName

Key name for EC2 SSH connection

ApiPlacementNetwork

Network placement location of API node

Public

ApiInstanceType

Instance type of API node

c5n.2xlarge以上

ApiRootVolumeSize

Root disk space for API node (used for Docker, etc.)

30GB or more

ApiBlockVolumeSize

Disk space for mijin block data storage

500GB or more

ApiBlockVolumeIops

IOPS settings for the above disks

3000以上

ApiMongoVolumeSize

Disk space for mongo data storage

300GB or more

ApiMongoVolumeIops

IOPS settings for mongo disks

3000以上

PeerNumberOfUnits

Number of PEER nodes

3

PeerInstanceType

Instance type of PEER node

c5n.xlarge以上

PeerRootVolumeSize

Root disk space of PEER node

30GB or more

PeerBlockVolumeSize

Disk for block data in PEER node

500GB or more

PeerBlockVolumeIops

IOPS settings for the above disks

3000以上

CatapultVersion

mijin のバージョン

v10038

CatapultShareMode

Setting the save method (example: SSM)

ssm

CatapultNetwork

network name

mijin

BlockGenerationTargetTime

block generation interval

15s

EffectiveFee

Commission setting (with/without)

No

MaxCosignedAccount

Maximum number of accounts that can cosign

25

FinalizationType

finalization system

Deterministic

MaxTransactionperBlock

Maximum number of transactions (1 block)

6000

RestThrottling

API connection limit

30tps

UnconfirmCacheSize

Unauthorized transaction cache size

UseLoadBalancer

Whether NLB is used or not

Yes

LoadBalancerType

ロードバランサー種別

External

ImageId

ID of AMI for management (cannot be changed)

Unchangeable

MPS3BucketName

S3 bucket name (cannot be changed)

Unchangeable

MPS3BucketRegion

S3 Region (cannot be changed)

Unchangeable

MPS3KeyPrefix

S3 prefix (cannot be changed)

Unchangeable

mijinStackAlreadyExist

Existing stack or not

No

Press ‘Next’ after completing the parameter entry.

2.2.2.10. Step.8

../../_images/step8_1.png

Without editing anything in particular, press ‘Next’ in the red frame.

2.2.2.11. Step.9

../../_images/step9_1.png

Check the two items in the red frame in ①.

Click ‘Create Stack’ in the red frame in ②. If there are no errors, creation will begin.

2.2.2.12. Step.10

../../_images/step10_1.png

Confirm that Stack has started and is in ‘CREATE_IN_PROGRESS’ state. This state will take approximately 20~30 minutes.

2.2.2.13. Step.11

../../_images/step11_1.png

If the status is ‘CREATE_COMPLATE’, the creation of mijin is complete.

2.2.2.14. Step.12

../../_images/step12_1.png

Press ‘Outputs’ of the created Stack to see the created mijin configuration information.

2.2.2.15. mijin endpoints and checkpoints

mijin endpoints and checkpoints

mijinLBEndpoint

ロードバランサー経由の mijin API エンドポイントです。 セッション維持設定が有効で、ソース IP に基づいたスティッキーセッションとなります。 詳細はこちら

mijinEndpoint

mijin API endpoints for direct access to API nodes (EC2).

../../_images/chaininfo.png

chainInfo

mijin の現在のブロック数を確認できます。 ブロック数が「2」以上であれば正常です。

../../_images/harvest_address.png

harvestAddress

AWS Systems Manager パラメータストアに登録された 通貨分配用アドレスのリンクです。

../../_images/empty_address.png

emptyAddress

AWS Systems Manager パラメータストアに登録された 未使用アドレスのリンクです。

../../_images/node_peers.png

nodePeers

mijin API からノードの接続状態が確認できます。 API ノード 1 台と、設定済みの PEER 台数が表示されていれば OK です。

You are now ready to use mijin Catapult. Let’s start the operation in the next section!