On 01/ 8/10 12:07 PM, Ethan Quach wrote:
> On 01/ 7/10 11:20 AM, Shawn Walker wrote:
>> Is there a plan to add a <origin> tag?
>
> Not at the moment. I've just filed an rfe for adding this -- 13761
>
> Question, when a client configures a publisher with multiple origins,
> are they
> all treated equally? or is there something special about the one
> specified with
> the -p vs. the additional ones with -g?

Nope; the -p bit is an artifact of backwards compatibility and publisher 
definition for image-create.

What determines which origin is used is a special quality metric based 
on observed performance calculated by the transport system.

> The image-create example given:
>
> $ pkg image-create -F -p example.com=http://pkg.example.com:10000 \
> -g http://alternate1.example.com:10000/ \
> -g http://alternate2.example.com:10000/ \
> -m http://mirror.example.com:10000/ \
> /aux0/example_root

set-publisher's syntax is a bit less ugly:

pkg set-publisher \
   -g http://example.com:10000 \
   -m http://mirror.example.com:10000 \
   example.com

-- 
Shawn Walker

Reply via email to