Skip to content

Commit

Permalink
Merge pull request #9 from SiaFoundation/nate/enable-redundant-ips
Browse files Browse the repository at this point in the history
fix: enable redundant host IPs for local clusters
  • Loading branch information
n8maninger authored Dec 4, 2024
2 parents 4110124 + 6abe108 commit d118340
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion nodes/renterd.go
Original file line number Diff line number Diff line change
Expand Up @@ -287,6 +287,8 @@ func (m *Manager) StartRenterd(ctx context.Context, sk types.PrivateKey, ready c
}

ap, err := autopilot.New(config.Autopilot{
Enabled: true,
AllowRedundantHostIPs: true,
Heartbeat: time.Second,
MigrationHealthCutoff: 0.99,
MigratorParallelSlabsPerWorker: 1,
Expand All @@ -306,7 +308,8 @@ func (m *Manager) StartRenterd(ctx context.Context, sk types.PrivateKey, ready c
node.Password = "sia is cool"

err = busClient.UpdateAutopilotConfig(ctx, func(req *api.UpdateAutopilotRequest) {
req.Enabled = &[]bool{true}[0]
enabled := true
req.Enabled = &enabled
req.Contracts = &api.ContractsConfig{
Amount: 1000,
Period: 4320,
Expand Down

0 comments on commit d118340

Please sign in to comment.