firedancer

package
v0.53.0 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 22, 2025 License: GPL-3.0 Imports: 10 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type Config

type Config struct {
	Name             *string `toml:"name,omitempty" pulumi:"name,optional"`
	User             *string `toml:"user,omitempty" pulumi:"user,optional"`
	ScratchDirectory *string `toml:"scratch_directory,omitempty" pulumi:"scratchDirectory,optional"`
	DynamicPortRange *string `toml:"dynamic_port_range,omitempty" pulumi:"dynamicPortRange,optional"`

	Log       *ConfigLog       `toml:"log,omitempty" pulumi:"log,optional"`
	Reporting *ConfigReporting `toml:"reporting,omitempty" pulumi:"reporting,optional"`
	Ledger    *ConfigLedger    `toml:"ledger,omitempty" pulumi:"ledger,optional"`
	Gossip    *ConfigGossip    `toml:"gossip,omitempty" pulumi:"gossip,optional"`
	RPC       *ConfigRPC       `toml:"rpc,omitempty" pulumi:"rpc,optional"`
	Snapshots *ConfigSnapshots `toml:"snapshots,omitempty" pulumi:"snapshots,optional"`
	Consensus *ConfigConsensus `toml:"consensus,omitempty" pulumi:"consensus,optional"`
	Layout    *ConfigLayout    `toml:"layout,omitempty" pulumi:"layout,optional"`
	HugeTLBFS *ConfigHugeTLBFS `toml:"hugetlbfs,omitempty" pulumi:"hugetlbfs,optional"`

	ExtraConfig *[]string `toml:"-" pulumi:"extraConfig,optional"`
}

func (*Config) Encode

func (c *Config) Encode(w io.Writer) error

type ConfigConsensus

type ConfigConsensus struct {
	IdentityPath               *string   `toml:"identity_path,omitempty" pulumi:"identityPath,optional"`
	VoteAccountPath            *string   `toml:"vote_account_path,omitempty" pulumi:"voteAccountPath,optional"`
	AuthorizedVoterPaths       *[]string `toml:"authorized_voter_paths,omitempty" pulumi:"authorizedVoterPaths,optional"`
	SnapshotFetch              *bool     `toml:"snapshot_fetch" pulumi:"snapshotFetch,optional"`
	GenesisFetch               *bool     `toml:"genesis_fetch" pulumi:"genesisFetch,optional"`
	PohSpeedTest               *bool     `toml:"poh_speed_test" pulumi:"pohSpeedTest,optional"`
	ExpectedGenesisHash        *string   `toml:"expected_genesis_hash,omitempty" pulumi:"expectedGenesisHash,optional"`
	WaitForSupermajorityAtSlot *int      `toml:"wait_for_supermajority_at_slot,omitempty" pulumi:"waitForSupermajorityAtSlot,optional"`
	ExpectedBankHash           *string   `toml:"expected_bank_hash,omitempty" pulumi:"expectedBankHash,optional"`
	ExpectedShredVersion       *int      `toml:"expected_shred_version,omitempty" pulumi:"expectedShredVersion,optional"`
	WaitForVoteToStartLeader   *bool     `toml:"wait_for_vote_to_start_leader" pulumi:"waitForVoteToStartLeader,optional"`
	OsNetworkLimitsTest        *bool     `toml:"os_network_limits_test" pulumi:"osNetworkLimitsTest,optional"`
	HardForkAtSlots            *[]string `toml:"hard_fork_at_slots,omitempty" pulumi:"hardForkAtSlots,optional"`
	KnownValidators            *[]string `toml:"known_validators,omitempty" pulumi:"knownValidators,optional"`
}

type ConfigGossip

type ConfigGossip struct {
	Entrypoints *[]string `toml:"entrypoints,omitempty" pulumi:"entrypoints,optional"`
	PortCheck   *bool     `toml:"port_check" pulumi:"portCheck,optional"`
	Port        *int      `toml:"port,omitempty" pulumi:"port,optional"`
	Host        *string   `toml:"host,omitempty" pulumi:"host,optional"`
}

type ConfigHugeTLBFS

type ConfigHugeTLBFS struct {
	MountPath *string `toml:"mount_path,omitempty" pulumi:"mountPath,optional"`
}

type ConfigLayout

type ConfigLayout struct {
	Affinity        *string `toml:"affinity,omitempty" pulumi:"affinity,optional"`
	AgaveAffinity   *string `toml:"agave_affinity,omitempty" pulumi:"agaveAffinity,optional"`
	NetTileCount    *int    `toml:"net_tile_count,omitempty" pulumi:"netTileCount,optional"`
	QuicTileCount   *int    `toml:"quic_tile_count,omitempty" pulumi:"quicTileCount,optional"`
	ResolvTileCount *int    `toml:"resolv_tile_count,omitempty" pulumi:"resolvTileCount,optional"`
	VerifyTileCount *int    `toml:"verify_tile_count,omitempty" pulumi:"verifyTileCount,optional"`
	BankTileCount   *int    `toml:"bank_tile_count,omitempty" pulumi:"bankTileCount,optional"`
	ShredTileCount  *int    `toml:"shred_tile_count,omitempty" pulumi:"shredTileCount,optional"`
}

type ConfigLedger

type ConfigLedger struct {
	Path                    *string   `toml:"path,omitempty" pulumi:"path,optional"`
	AccountsPath            *string   `toml:"accounts_path,omitempty" pulumi:"accountsPath,optional"`
	LimitSize               *int      `toml:"limit_size,omitempty" pulumi:"limitSize,optional"`
	AccountIndexes          *[]string `toml:"account_indexes,omitempty" pulumi:"accountIndexes,optional"`
	AccountIndexExcludeKeys *[]string `toml:"account_index_exclude_keys,omitempty" pulumi:"accountIndexExcludeKeys,optional"`
	AccountIndexIncludeKeys *[]string `toml:"account_index_include_keys,omitempty" pulumi:"accountIndexIncludeKeys,optional"`
	SnapshotArchiveFormat   *string   `toml:"snapshot_archive_format,omitempty" pulumi:"snapshotArchiveFormat,optional"`
	RequireTower            *bool     `toml:"require_tower" pulumi:"requireTower,optional"`
}

type ConfigLog

type ConfigLog struct {
	Path         *string `toml:"path,omitempty" pulumi:"path,optional"`
	Colorize     *string `toml:"colorize,omitempty" pulumi:"colorize,optional"`
	LevelLogfile *string `toml:"level_logfile,omitempty" pulumi:"levelLogfile,optional"`
	LevelStderr  *string `toml:"level_stderr,omitempty" pulumi:"levelStderr,optional"`
	LevelFlush   *string `toml:"level_flush,omitempty" pulumi:"levelFlush,optional"`
}

type ConfigRPC

type ConfigRPC struct {
	Port                          *int  `toml:"port,omitempty" pulumi:"port,optional"`
	FullAPI                       *bool `toml:"full_api" pulumi:"fullApi,optional"`
	Private                       *bool `toml:"private" pulumi:"private,optional"`
	TransactionHistory            *bool `toml:"transaction_history" pulumi:"transactionHistory,optional"`
	ExtendedTxMetadataStorage     *bool `toml:"extended_tx_metadata_storage" pulumi:"extendedTxMetadataStorage,optional"`
	OnlyKnown                     *bool `toml:"only_known" pulumi:"onlyKnown,optional"`
	PubsubEnableBlockSubscription *bool `toml:"pubsub_enable_block_subscription" pulumi:"pubsubEnableBlockSubscription,optional"`
	PubsubEnableVoteSubscription  *bool `toml:"pubsub_enable_vote_subscription" pulumi:"pubsubEnableVoteSubscription,optional"`
	BigtableLedgerStorage         *bool `toml:"bigtable_ledger_storage" pulumi:"bigtableLedgerStorage,optional"`
}

type ConfigReporting

type ConfigReporting struct {
	SolanaMetricsConfig *string `toml:"solana_metrics_config,omitempty" pulumi:"solanaMetricsConfig,optional"`
}

type ConfigSnapshots

type ConfigSnapshots struct {
	IncrementalSnapshots                *bool   `toml:"incremental_snapshots" pulumi:"incrementalSnapshots,optional"`
	FullSnapshotIntervalSlots           *int    `toml:"full_snapshot_interval_slots,omitempty" pulumi:"fullSnapshotIntervalSlots,optional"`
	IncrementalSnapshotIntervalSlots    *int    `toml:"incremental_snapshot_interval_slots,omitempty" pulumi:"incrementalSnapshotIntervalSlots,optional"`
	MaximumFullSnapshotsToRetain        *int    `toml:"maximum_full_snapshots_to_retain,omitempty" pulumi:"maximumFullSnapshotsToRetain,optional"`
	MaximumIncrementalSnapshotsToRetain *int    `toml:"maximum_incremental_snapshots_to_retain,omitempty" pulumi:"maximumIncrementalSnapshotsToRetain,optional"`
	MinimumSnapshotDownloadSpeed        *int    `toml:"minimum_snapshot_download_speed,omitempty" pulumi:"minimumSnapshotDownloadSpeed,optional"`
	Path                                *string `toml:"path,omitempty" pulumi:"path,optional"`
	IncrementalPath                     *string `toml:"incremental_path,omitempty" pulumi:"incrementalPath,optional"`
}

type Firedancer

type Firedancer struct {
	runner.RunnerCommand

	Environment    *solana.Environment `pulumi:"environment,optional"`
	Version        *string             `pulumi:"version,optional"`
	Variant        *Variant            `pulumi:"variant,optional"`
	DeletionPolicy *deletion.Policy    `pulumi:"deletionPolicy,optional"`

	KeyPairs KeyPairs `pulumi:"keyPairs"`
	Config   Config   `pulumi:"config"`
}

func (*Firedancer) GetDeletionPolicy added in v0.45.1

func (fd *Firedancer) GetDeletionPolicy() deletion.Policy

func (*Firedancer) GetVariant added in v0.43.0

func (fd *Firedancer) GetVariant() Variant

func (*Firedancer) Install

func (fd *Firedancer) Install() runner.Command

func (*Firedancer) ManagedFiles added in v0.45.1

func (fd *Firedancer) ManagedFiles() []string

func (*Firedancer) Properties added in v0.43.0

func (fd *Firedancer) Properties() validator.Properties

func (*Firedancer) Uninstall added in v0.33.0

func (fd *Firedancer) Uninstall() runner.Command

type InstallCommand

type InstallCommand struct {
	Firedancer
}

func (*InstallCommand) AddToPayload

func (c *InstallCommand) AddToPayload(p *runner.Payload) error

func (*InstallCommand) Check

func (c *InstallCommand) Check() error

func (*InstallCommand) Config added in v0.37.0

func (c *InstallCommand) Config() *runner.Config

func (*InstallCommand) Env

func (c *InstallCommand) Env() *runner.EnvBuilder

type KeyPairs

type KeyPairs struct {
	Identity    string `pulumi:"identity" provider:"secret"`
	VoteAccount string `pulumi:"voteAccount" provider:"secret"`
}

type UninstallCommand added in v0.33.0

type UninstallCommand struct {
	Firedancer
}

func (*UninstallCommand) AddToPayload added in v0.33.0

func (u *UninstallCommand) AddToPayload(p *runner.Payload) error

func (*UninstallCommand) Check added in v0.33.0

func (u *UninstallCommand) Check() error

func (*UninstallCommand) Config added in v0.37.0

func (u *UninstallCommand) Config() *runner.Config

func (*UninstallCommand) Env added in v0.33.0

type Variant

type Variant string
const (
	VariantFrankendancer Variant = "frankendancer"
	VariantFiredancer    Variant = "firedancer"
)

func (Variant) Check added in v0.43.0

func (v Variant) Check() error

func (Variant) PackageName added in v0.43.0

func (v Variant) PackageName() string

func (Variant) ServiceName added in v0.43.0

func (v Variant) ServiceName() string

func (Variant) Values

func (Variant) Values() []infer.EnumValue[Variant]

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL