1. In the channels table, identify a good paying and high outflow channel. (http://your.local.ip.here:8889/ see o7D, oLife)
This is a great channel to start learning with as attempts are based on the enabled or targeted channel. Also check that the peer's fees on the other side is less than yours else it could never rebalance.
1 - In rebalancer enable (green showing Disable) the channels that you want to get outbound liquidity to (more local Balance).
The enabled channels will attempted to be filled the local / outbound side by using the non-enabled channels to rebalance from. So an Enabled channel will not be used to rebalance other enabled channels; this is important to understand.
2. Once you have identified a well earning outflow channel, use the enable button on the right side to start targeting this channel to be refilled with outbound liquidity. We know this channel flows out well and earns sats, lets keep it filled and busy routing! š
2 - For each enabled (marked orange) channel enter the inbound % that you want to push that channel down to. For example, if you want 90% on the local outbound side of a channel then enter 10% in the iTarget%. You must hit enter after you type in the number for the change to become effective.
3. Repeat this process for all channels that earn well and you do not want to lose outbound liquidity on (a good example would be LOOP). Don't worry too much about keeping each channel at 50/50 balance but instead keep your focus on putting liquidity back where it earns you sats.
4. Now that you have a few channels enabled and targeted, you can drop the iTarget% for each enabled channel down to your desired preference. If you keep the iTarget% at 100 then nothing will ever happen because the inbound liquidity can never go above 100.
4 - If you have a channel that you arenāt trying to push outbound towards but you donāt want it to be used to rebalance the enabled channels either then set iTarget% to 100%. As it is enabled it wonāt be used to rebalance other channels and as you are trying to achieve 100% on the inbound side it wonāt push any sats to the outbound side, therefore effectively allowing the channel to be ignored by the rebalancer.
5. To get the AR working on this channel, the inbound liquidity on the channel must be above the iTarget% and thus the 100 would never do anything. This means you want to push the inbound down below iTarget% and increase outbound, refilling the channel. Setting an iTarget% of 60 however would refill this channel with outbound liquidity until the inbound liquidity fell below 60%.
6. Now that we understand how to refill channels, lets talk about where we have to pull the liquidity from in order to refill these channels.
so if AR is disabled the channels are used as source. then only oTarget counts. If AR is enabled you want to actively rebalance them, then only iTarget counts and oTarget is irrelevant.
7. One setting that will affect which channels can feed others during refilling is AR-Outbound%. This can be found in the AR settings table. If you don't see a particular setting in the table yet, try to set it using the form just below the table. When targeting a channel to be refilled, LNDg will use any channel that is not already enabled AND the outbound liquidity of the channel is greater than the AR-Outbound%. Advanced users may prefer to update the oTarget% for each channel, which overrides this global setting.
8. Just to recap, we are enabling channels we want to refill with outbound and those channels will be fed liquidity by channels that are not enabled. We can control how far to push the inbound liquidity down during refilling outbound liquidity of a channel with the iTarget%.
9. Now that you have things setup on a channel basis, you can review the global settings a bit and make sure things are to your liking. Lets look at each global setting and how to use it.
10. AR-Enabled
This is used to turn the AR on and off. By setting this value to 1 you will allow LNDg to start scheduling rebalances based on your specifications. Think of this as a global on and off switch.
11. AR-Target%
This specifies how big the rebalance attempts should be as a function of the channel capacity. This can be overridden in the advanced settings by setting a channel specific target amount. Updating this value will also update all specific channel target amounts.
12. AR-Outbound%
This marks how full a channel must be in order to be considered to feed another channels during a rebalance attempt. This can be overridden as well in the advanced settings by setting a channel specific oTarget%.
13. AR-MaxCost%
This lets LNDg know what % of the fees you charge on the enabled channel to put towards rebalancing that channel. If you charge 100 ppm out on an enabled channel with a 0.50 (50%) max cost. Then the max you will ever pay for this rebalance attempt will be 50 ppm.
14. AR-Time 5
This determines how long we should search for a route before moving on to the next rebalance attempt. LNDg will not look again for 30 minutes after failing an attempt so try to keep things busy without making rebalances too long. Recommend staying around 3-5 mins.
LNDg versucht immer nur einen channel auf einmal und das der reihe nach, bei 3 aktiven Channels a 9 min sind das 27 minuten.
AR-WaitPeriod (10 min)
i have like 10 channels that are enabled for rebalancing but normally only 3 need to be rebalanced at a time so i go 4min AR-Time and 12 min AR-WaitPeriod.
50 variance (how much variance there should be between channels)
If your target office is 50k sats, then the Variance takes this value and randomly places it on the 50k. It then takes a random value between 50k*0.7 and 50k*1.3 as the rebalance value.
15. AR-MaxFeeRate
This is a fail safe to globally cap the max fee rates on any rebalance attempt. This cap will override the max cost % calculated value if it is lower. In our max cost example, a MaxFeeRate of 40 would have capped that rebalance down to 40 ppm instead of 50.
Max Cost 50% - This is the max % of your fees that you want to charge. If you charge 500ppm on the channel and the Max Cost % is 80% it will try to rebalance the channel so long as the cost is no more than 400ppm. Note that both the Max Fee Rate and Max Cost % will limit the amount that will be paid to rebalance.
16. AR-Autopilot
This setting will allow LNDg to automatically enable and disable channels based on the flow pattern of your node. This is a pretty great feature but go slow and try things out manually a bit before letting LNDg take over. This will help build more confidence.
The number in the parenthesis "Rebal In?" tells you how many successful rebalances it takes to completely rebalance the channel.
If you change iTarget from 20 to 80, it means you no longer want to rebalance to 20% inbound, but only to 80%. So he only needs 2 rebalances instead of 8 to get there.
Automatic Disable/Enable is exactly what the AR Autopilot from LNDg does. It does exactly that and nothing else. The oTargets are not relevant for the channels you want to rebalance. When AR is enabled, LNDg only looks at the iTarget%.
20% iTarget% then means: Rebalance until I have 80% outbound and 20% inbound. So get the majority on my side --> therefore more rebalances necessary to get everything over.
80% iTarget means: Get 20% outbound to me and leave 80% with the peer.
80% iTarget actually makes little sense. If I already rebalance, then I also want to have a proper outbound on my side.
17. If you want to get an idea of what LNDg thinks you should be enabling or what would LNDg do if you were to turn on AR-Autopilot, then just head over to the Suggested AR Actions page (link right above channels table). If you see things here, this is what AP would do.
18. If there are any channels you want to make sure are excluded from all rebalancing, you can either enable it and make sure the iTarget% is set to 100 or set the oTarget% to 100 as well if you want to keep it disabled.
19. You should now be all set to fire things up! Go ahead and change the AR-Enabled value to 1 and start watching for rebalances to get scheduled by refreshing the page after a few moments. A new table should appear showing all the rebalances that LNDg has started to schedule.
20. That's it! You are now on your way to maximizing your flow and potential earnings! ššŖ